This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

newbie: IDE generated build files on separate non-IDE build system??

 
Johan Martinez
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am new to Java-Ant world. I have basic idea about building projects using Ant, but mostly it has been taken care by the IDE used - Netbeans here. The Netbeans generated a build file for my project automatically. Now I would like to have a separate build system where I can download source code from the repository and build it without using Netbeans/IDE. Can anyone suggest how it can be handled - having distinct build system from development system? Also, how is it handled in companies where developers have different kinds of IDE platforms, as IDEs seem to include some IDE specific properties in the build file? Are IDE generated build files ignored by the build system and instead a separate build file is used? I am a student and don't have much idea how things work in multi-developer environment with different types of developer tools.

-
jM.
 
Tim Holloway
Saloon Keeper
Posts: 18302
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I got burned really badly on stuff like that, which is why these days I always make sure that my apps don't require an IDE to build.

I make my build files manually, so I haven't run into anything like that recently, but if I did, I'd consider switching to an IDE with a less proprietary view of things.

Actually, I do most builds using Maven these days, and part of the reason is that Maven doesn't require a lot of config stuff as long as you put things where Maven wants them put. Eclipse has a Maven plugin that facilitates editing of the Maven POM, but it doesn't distort the shape of the POM, so I'm OK with that.
 
Johan Martinez
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the reply Tim. I am guessing it might be easier if developers exclude build.xml from checking into repository. Not sure how build systems are actually implemented in big development shops though.

jM.
 
Tim Holloway
Saloon Keeper
Posts: 18302
56
Android Eclipse IDE Linux
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Actually, if you're designed build.xml properly, it should be checked into the repository.

A properly-designed build.xml not only runs independent of the IDE(s) that have been used to maintain the project, it also is going to be independent of who's using it. Shop standards are good for this, but so are lots and lots of properties suitable for overriding when someone has a non-standard (or different standard) machine setup.

Believe me, getting a project dumped in your lap with no idea of how to build it is one of the worst things that can be done to you!
 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
build.xml file generated by NetBeans isn't NetBeans-independent?
 
Tim Holloway
Saloon Keeper
Posts: 18302
56
Android Eclipse IDE Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
John Todd wrote:build.xml file generated by NetBeans isn't NetBeans-independent?


I don't know. Last time I worked with NetBeans, it was still named "Forte". However, if NetBeans is generating IDE_dependent build.xml files, that would be step backwards in IDE technology. Eclipse and IntelliJ can work with a common build.xml.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic