Android best revision control for apps? - java

Ok so I have my app that I am about to release as a beta. It also has bug reporting feature thanks to ACRA.
Now I want to be updating the beta and also fix any bugs that has been reported.
But of course I would want to keep the original released copy so that I can figure out the bugs and what not.
And then as final versions get released I would want to do the same with each released version.
So I need some kind of version control system. I am new to all this so I'm not sure what the best/simplest way to go about doing so.
I'v googled around and there seems to be numerous revision control systems with a lot of features I don't really need.
But as long at its easy to do what I'm looking for I'll be happy with it. I am also using eclipse so something that goes great with it would be nice.
I'm not too sure how it would all work so any help is appreciated.
Thanks!

Since you are using Eclipse, and all Eclipse projects are using Git, you could use that DVCS (Distributed Version Control System) with your project.
See Eclipse and EGit: Tutorial, combined with the Git Tutorial.
alt text http://www.vogella.de/articles/EGit/images/repositoryview10.gif
Note: this other tutorial introduces both EGit, and Mercurial (other DVCS) plugins.
So you have the choice..

Related

How to use code repositories in Eclipse?

How can I use code repositories in Eclipse? Should I use SVN or Mercurial? What way is easiest to use with Eclipse on a Mac. I tried to use Google Code (with SVN and Mercurial), but I need to get JavaHL for it to work. Is there an easier way?
Thanks!
How can I use code repositories in Eclipse?
It depends on the version control technology, but Eclipse has support for a number of technologies, via the "Team" user interfaces.
Should I use SVN or Mercurial?
Your choice. There are other version control technologies supported too; e.g. Git and CVS. Search in the Eclipse Marketplace.
You really need to do your own research on this, and figure out which one best matches your and your project's requirements. (SO is not a survey or recommendation site, so don't expect people to give you recommendations ...)
What way is easiest to use with Eclipse on a Mac.
Erm ... see above.
I tried to use Google Code (with SVN and Mercurial), but I need to get JavaHL for it to work. Is there an easier way?
Unfortunately, the SVN plugins for Eclipse require an implementation of the native JavaHL drivers:
For windows, the drivers are included when you install from the update service.
For other platforms, they are not. You can download them for free from Collabnet (after a signup song-and-dance). The installation and setup is non-trivial, but the process is well documented, and it works if you complete all of the steps as per the documentation. This is, IMO, a "poor user experience", but nobody seems to care enough to fix it. (Guys ... the word you are looking for is "compromise".)
The JavaHL libraries are only required by the SVN plugins. Other version control technologies don't require this.
I've been using subclipse for a while, and I think it is great enough for small projects.
You can try EGit if you are using git as your repository.
If you search for "Eclipse version control", you'll get many recommendations.
SVN (need to install the JavaHL library)
EGit (recommeded if you are using Git)
SourceAnywhere Standalone (provided by the company I'm working for)
Mercurial (MercurialEclipse)
You can test out the above tools to see which meets your requirements best.

Issues with Eclipse constantly performing clean/build

We recently started using Eclipse to develop our java application and have been running into some issues. It should be known that we do not use any version tracker, or build software which probably is not best practice, although I was hoping to find an alternative solution to our problem. We have up to 4-5 developers who could be editing a particular project at one time. Throughout our work days, we constantly run into Eclipse wanting to clean/build the project as certain files are edited. We were previously developing using TextPad and compiling at the command line, and would ideally like to use Eclipse in a similar fashion to make coding easier. Is there anyway to setup Eclipse to do what we're trying to do, or will we need to start using some kind of version tracker?
You should definitely use version control, for many reasons, not just this issue.
If you're all editing the code in the same location on a share, that'd cause this issue. You can avoid that by everyone having a local copy, which would require version control of some kind.
De select Project -> Build Automatically in your eclipse. You need to manually build your project when you want to. Think this is what you are expecting

Is it sane to start a Blackberry Java project without using the recommended IDE i.e. Eclipse?

Considering that I'll be using Vim as my text editor of choice, what tools do I have to consider to manage and build a project of this magnitude?
I'm told that Apache Ant is similar to GNU Make so that part is covered so far. But what about UI design, is there a stand alone UI designer, I mean, something that doesn't need Eclipse installed.
Update: Is there any how-to floating around for Blackberry development, like these ones for Android?
Android's development without Eclipse
Android's development guide for Non-Eclipse IDEs
Well. you'll need the simulator at a bare minimum, which you can download from the blackberry website. You will also need to download the SDK for the minimum OS you want to support. You will also need BB-Ant-tools.jar to be able to do ant builds properly.
Is it sane? Honestly No, it isnt. You´ll get lots of headaches.
With blackberry sometimes even the Recommended way of doing things fail, and trying to avoid using the tools that work best for the task is gonna get it even harder.
Writing Java without a Java aware IDE is torture. But if you're already comfortable writing Java code in vim, then you should be fine. There is no designer for BlackBerry -- we're all in the same boat on that aspect.
You may or may not find this relevant
Tips for using Vim as a Java IDE?

Best Blackberry Dev environment

What development environments do most BB devs use out there? I haven't programmed much Java in 6-7 years and typically used NetBeans or JCreator for projects as I found Eclipse cumbersome. RIM has the plugin for Eclipse, but I've also read some posts where people are using whatever editor they want and then using ANT for builds and testing.
I'm coming from .NET so obviously I'm a heavy VS.NET user.
Your supported options are JDE (simply not very capable compared to any modern IDE), and Eclipse. For widget development, the VIsual Studio plugin supports VS 2005 and 2008 (I don't think 2010 is yet, but I expect it won't be far behind.)
I've gone through great pains trying to stick with Netbeans (Eclipse makes me itch), but eventually had to give up and switch to Eclipse. The support simply isn't there; I was able to get the basic debugging to work with Netbeans, but that was just about it. Simple things like "break on uncaught exception"; or localization handling (if using string resources) were either not possible, or very inefficient.
The JDE is adequate for debugging, if only barely. However in my experience (especially in the very latest versions) there's no difference at all between the JDE and Eclipse debugging features.
The other option you have is to use the IDE of your choice; and ant-based build scripts. That would let you use . You will still have some pain points (mostly localization handling), but it would do the job. The Blackberry Ant Tools project can be found here: http://bb-ant-tools.sourceforge.net/docs. In this case you would still want to use JDE/Eclipse for ease of debugging, but would be able to do most of your development in the IDE of your choice.
I would recommend using both RIM tools. Eclipse plugin is good for development and now even supports hot-swap debugging on the Simulator.
But if you need on device debugging and logging - for me, only JDE worked correctly, so I keep both these tools in my toolbelt :)
If you want to try the ANT route, it's possible, for example look at Wordpress BB application, it shows a good way of working with BB project and ANT. IntelliJ handles it pretty well.
There are a number of specific free development environments provided by RIM, and which you can download, including an Eclipse plugin.

Java Development on a Mac - Xcode, Eclipse, or Netbeans [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I've been using Xcode for the usual C/C++/ObjC development. I'm wondering what are practical considerations, opinions of Xcode, Eclipse or NetBeans usage on a Mac for Java development?
Please don't include my current usage of Xcode in your analysis.
You missed the Rolls Royce of all IDEs. IntelliJ Idea.
If you can afford to buy a personal license, go for it. Edit: There’s a free Community Edition which is a superb way to get started with Java, Scala or Kotlin.
I like NetBeans on OS X for Java.
It seems like I spend more time configuring eclipse to get a decent java programming environment. With NetBeans the setup time is less and I can get down to programming quicker...
I would advocate Eclipse on the Mac for Java, mosly because I had a very good experience. I'm not going to bang on about its merits as an IDE, but here are some unexpected advantages I found:
When my employer switched IDE's to Eclipse I was way ahead.
Pretty much any language I fancied trying out had a free IDE somewhere as an Eclipse plug-in, so I have a very consistent multi-language development environment.
When I eventually went over to the Windows dark side I could use the same development environment, which was a huge relief.
But this is a bit of a religious topic, so expect to get a whole bunch of different opinions
Just to be sure you give them fair consideration, Eclipse and Netbeans have gone back and forth for a while. Eclipse used to be a good deal quicker because they didn't use Swing.
Now Netbeans has caught up (perhaps surpassed) and has a lot of momentum.
You will get more votes for Eclipse. Period. This is because it was better and more people use it--and it's just human nature to feel what you are using is the best and everyone should use it.
Because it was better does not mean it's better now. Netbeans has more languages supported and more all-around support--so it's growing faster.
Currently I use Eclipse--I've used both (and IntelliJ and TextMate and Notepad...) and I can tell you that Eclipse has exactly one feature over netbeans... Mylyn (it's been renamed, it used to be called Mylar). This thing is pretty damn cool, but few people seem to even know it exists.
So, if you don't know a bunch of keystrokes that already tie you to an editor, the up and coming is Netbeans--don't pass it up because of a bunch of Eclipse votes.
Better yet, get good with both--it can't hurt and makes me a lot more comfortable when a company requires one or another. Don't whine when they make you change.
Do not use Xcode - Java support in the later versions is very much lacking. Even Apple, who make it, suggest you use a different IDE. As for NetBeans and Eclipse, they both have their strengths and a large number of vocal followers. I suggest you try both and use whichever you find more comfortable.
I for one use TextMate and shell scripts. But I'm strange.
Well, I can chime in with Netbeans, it seems to work really well. There are some function key issues that I believe has a solution, I just haven't solved it. I've been quite happy with Netbeans. I like its "all in one out of the box" nature over the pick and choose plug in nature of Eclipse, but that's just a matter of taste.
Another vote for IntelliJ. http://www.jetbrains.com/idea/
I used both Eclipse and Netbeans. I like Netbeans more than Eclipse. From java editor point of view, both have excellent context sensitive help and the usual goodies.
Eclipse sucks when it comes to setting up projects that other team members can open and use. We have a big project (around 600K lines of code) organized in many folders. Eclipse won't let you include source code that is outside the project root folder. Everything has to be below the project root folder. Usually you want to have individual projects and be able to establish dependencies among them. Once it builds, you would check them into your source control. The problem with eclipse is that a project (i.e .classpath file) dependencies are saved in user's workspace folder. If you care to see this folder, you will find many files that read like org.eclipse.* etc. What it means is that you can't put those files in your source control. We have 20 step instruction sheet for someone to go through each time they start a fresh checkout from source control. We ended up not using its default project management stuff (i.e. classpath file etc). Rather we came up with an Ant build file and launch it from inside Eclipse. That is kludgy way. If you had to jump through these many hoops, the IDE basically failed. I bet eclipse project management was designed by guys who never used an IDE. Many IDES let you have different configurations to run your code (Release, Debug, Release with JDK 1.5 etc). And they let you save those things as part of your project file. Everyone in the team can use them without a big learning curve. You can create configurations in Eclipe, but you can't save them as part of your project file (i.e it won't go into your source control). I work on half dozen fresh checkouts in a span of 6 months. I get tired to recreate them with each fresh checkout.
On the other hand, Netbeans works as expected. It doesn't have this project management nightmare.
I heard good things about IntelliJ.
If you are starting fresh, go with Netbeans.
My 2cents.
It depends what you want to do. My experience with Java on the Mac is about a year old by now, but NetBeans had a much better out-of-the-box support for Tomcat (in particular) deployment, and generally seemed to be a little more user friendly. For instance, the Netbeans beta I tried out used forms for web.xml configuration, in comparison to Eclipse's plain ol' XML editor (and in Europa, at least, the XML editor's row redrawing was a little sketchy on the Mac).
That said, for that project, I wound up doing a bit of configuration (for a was a n00b) in NetBeans, then moved the XML config files over to Eclipse, and developed the rest there. As others have mentioned, the zillions of plugins are great, and in general the experience is just very consistent. Especially if you have to work on another platform.
If Eclipse had better OS X bindings (does it have any? I'm unaware), I would use that for Obj-C development, as well.
I have tested editors for Java extensively and prefer Netbeans to Eclipse by a significant margin. NetBeans has excellent support for Java, a very beautiful user interface and powerful features. It also has excellent support for C++ and I would choose for this it over, say, Visual Studio. Consider JCreator classic edition, an excellent place to start although not as powerful as NetBeans, easier to get into at first.
I'd also defend NetBeans plugins against Eclipse because although Eclipse is highly praised for the flexibility it is afforded by plugins I think this is largely down to the fact that the also very powerful plugins features of NetBeans are not shouted about so much, even though it is also very strong in this area. I have seen computational fluid dynamics applications based on the NetBeans platform, very impressive, I just don't think NetBeans developers make such a big deal over it because it's already a complete package from the moment you download it, powerful without any need for configuration with plugins.
If you're using Eclipse, be sure to use Ganymede (3.4) or later. They run great. The previous version (Europa) ran poorly on my Macbook Pro.
I happen to use Eclipse on my Mac (actually EasyEclipse which comes preconfigured with the most important plugins) and I must say it runs great. I have a less positive experience on Linux though.
I have also used NetBeans 6 recently and I was very impressed. It seems to have more functionality build-in. Most of the functionality is undoubtedly also available as an Eclipse plugin though, if you can find it.
Currently I have the impression that if you start developing Swing, Netbeans is your best option. Otherwise, Netbeans or Eclipse with a handy set of plugins are both excellent options.
If you do check out eclipse, give a thought to EasyEclipse (free) or perhaps even MyEclipse (not free). They come with the most usefull plugins preinstalled.
I've worked with both Eclipse CDT and NetBeans's C++ support, and I must say that in my experience CDT is far superior in both stability and in features. It's really impressive how well the CDT indexer works; the tooling is almost as good as Java's. I'm also a huge fan of JDT when compared with NetBeans for Java development. The workflow is just so much smoother, if only due to the incremental compiler (compile-on-save).
One thing about NetBeans though, its UI does flow a little better in the "Mac style", which is ironic seeing as SWT was created to provide a more native interface. The next release of Eclipse should be based on Cocoa (rather than Carbon, which is the current), but that won't be until next June.
Final note: the whole "in box" vs "plugins" issue is entirely moot and it has been since Eclipse Calisto (two years ago). Now, with P2 (the new update manager), it's dead easy to get different features in the IDE. I can start with a download and get a fully-functional JDT/CDT/Mylyn environment up and running within five minutes of installation (assuming a reliable internet connection).
I use Eclipse for development, and have had nothing but pain. It has more bugs than a bait shop, and is one of the worst written programs I have ever used. Use Xcode if you want to save time and frustration.
I'll suggest Eclipse because it has a zillions plugins and is almost a standard for Java development. But I've heard that NetBeans is really nice since their latest release specially if you want to do desktop application(Swing) .
I can't comment on Xcode since I haven't play with it.
Just from my experience, Eclipse is very large IDE. It needs more work to become better suited for the Mac environment. Netbeans is the best out of box experience. After installed, it is essentially ready to go. After I tried IntelliJ IDEA I forgot every other kind of IDE :P
But at the end no one wins over the other.
IMHO as USUAL !
Eclipse, because it has better support of C++ on mac. I used Netbeans long time ago, did not like it.
Use Java based IDE on mac only if you have to (especially when doing Java development). Xcode already supports C/C++ development, so no need to switch.
am I missing the point here or are developers still considering using Mac for java development?
I was a strong and rigid supporter of Mac as a development environment but ever since Apple's decision to not port java on later versions of os x my confidence has shaken a little.
And please do not even think about doing any j2EE deployment on Mac as it will bring about a tsunami of woes.
So long Java but I like my mac book pro too much .
FYI:I still use Mac for java development but sometimes I wish I were a python developer :(
From my experience, I use both Eclipse and Intellij (license) for J2EE development.
For overall of speed on IDEs, Intellij is faster and crashed lesser than Eclipse. I used Eclipse first and later on, I got used to Intellij and fell in love with it. However, Google's Android Studio is Intellij based. It's more modernized. Debugging is much easier especially you can evaluate a block code during the debug mode to see how it behaves instead of just inspecting objects. I highly recommend!

Categories

Resources