aspose file tools*
The moose likes IDEs, Version Control and other tools and the fly likes project build Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Engineering » IDEs, Version Control and other tools
Bookmark "project build" Watch "project build" New topic
Author

project build

ben oliver
Ranch Hand

Joined: Mar 28, 2006
Posts: 370
In Eclipse,

1. what's the difference between "build" and "clean build". Why doestimes a pj can be built OK using clean build but not with normal "build" ?

2. If I have a few projects (some are ejb, few are java projects). If I click "build" and can build each of them. What does that mean ? does it just mean it generates the .class file properly ? In order to really deploy the whole thing, do I still need to write separate ant script to bundle everything ? The basic question is --- By clicking "build" does not automatically create any .war ot .ear, correct ?

thanks.
Jeanne Boyarsky
internet detective
Marshal

Joined: May 26, 2003
Posts: 29259
    
140

Ben,
Which IDE are you asking about? Eclipse, NetBeans, IntelliJ, etc?


[Blog] [JavaRanch FAQ] [How To Ask Questions The Smart Way] [Book Promos]
Blogging on Certs: SCEA Part 1, Part 2 & 3, Core Spring 3, OCAJP, OCPJP beta, TOGAF part 1 and part 2
ben oliver
Ranch Hand

Joined: Mar 28, 2006
Posts: 370
I am using eclipse
Seetharaman Venkatasamy
Ranch Hand

Joined: Jan 28, 2008
Posts: 5575

Build: generate .class file for your .java file .

Clean : it will remove all the .class file from particular folder

CleanBuild: it will remove all the .class file and then generate .class file for your source file(.java)[i dont see this option in eclipse. but i think it is in Netbean]
ben oliver
Ranch Hand

Joined: Mar 28, 2006
Posts: 370
sounds good. but if you choose to do "build", it also creates .class files and it should automatically replace the old .class, right ? so what's the difference of first removing all .class files ?
Peter Johnson
author
Bartender

Joined: May 14, 2008
Posts: 5779
    
    7

Build compiles only changed .java files. This could lead to problems if, for example, class A calls a method on class B, but you change the signature of that method - build then compiles only B.java (assuming you had previously compiled boht A.java and B.java). Now you have a broken app. (This is only one of several things that can go wrong.)


JBoss In Action
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: project build
 
Similar Threads
help abt scjp xam
Ant vs Maven newbie question
maven and publish to server problem
Spring Tool Suite
maven clean output directory