Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » Need to import a build.xml that currently works and run it in Eclipse(I have a big project that I need to find another Java developer for but I need to know about Eclipse . .)
Need to import a build.xml that currently works and run it in Eclipse [message #1718279] Tue, 22 December 2015 00:13 Go to next message
Eclipse UserFriend
I have found a new Java developer to take on the continuing development of my project but I want to learn about the basics of Eclipse so I can understand more of what my new developer is doing while we are "pair programming".

Currently, typing "ant" in the home of the source tree happily rebuilds the project so I know the system is working. If I import this build.xml file (attached) into an Eclipse project and try and run it, I get:

Buildfile: /home/phil/workspace/Honesty/build.xml
init:
clean:
[delete] Deleting directory /tmp/honestybuild
[mkdir] Created dir: /tmp/honestybuild
[mkdir] Created dir: /tmp/honestybuild/classes
compile:
[javac] /home/phil/workspace/Honesty/build.xml:41: warning: 'includeantruntime' was not set, defaulting to build.sysclasspath=last; set to false for repeatable builds

BUILD FAILED
/home/phil/workspace/Honesty/build.xml:41: srcdir "/home/phil/workspace/Honesty/Conversation/src" does not exist!

Total time: 157 milliseconds

- so it looks like there is more that I need to do to get the project set up properly - is there a convenient place a (non-Java) programmer can find this stuff? Is anyone motivated to do a bit of remote consulting?

Thanks,
Phil.
  • Attachment: build.xml
    (Size: 2.51KB, Downloaded 140 times)
Re: Need to import a build.xml that currently works and run it in Eclipse [message #1718685 is a reply to message #1718279] Tue, 29 December 2015 03:50 Go to previous message
Eclipse UserFriend
Hi phillip,

It contains information necessary to build the project to produce the desired output, be it Javadocs, a compiled project, or a JAR file.

I believe Eclipse has ant built-in, so it should be possible to execute the build.xml by choosing "Run As..." and "Ant Build".

The build.xml file, if it is an ant script, is not used to import the project into an IDE like Eclipse or Netbeans. A build script is used to build the project (or produce some desired output) rather than an mechanism for importing the project into an IDE. source stackoverflow
Previous Topic:Extending with org.eclipse.jdt.ui.javaEditorTextHovers
Next Topic:How JDT implement drag and drop actions to views
Goto Forum:
  


Current Time: Sun Aug 24 23:41:03 EDT 2025

Powered by FUDForum. Page generated in 0.03351 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top