Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

How to use the Ant build in v3 without a custom build.xml

 
David Yutzy
tumbleweed and gunslinger
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I noticed in v3 there is a way to build a project without a custom Ant build.xml, but cannot seem to get the files I need compiled working properly to be included in the .war.

Then, it gets even more difficult trying to do .ear files.

I'm assuming that to do this, a cusotm build.xml is needed anyway...
 
somkiat puisungnoen
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure in my answer ....

::: build war file in build.xml :::


<?xml version"1.0"?>
---
<-target name="BuildWar">
<-jar jarfile="${dist.dir}/testWar.war">
<-fileset dir="${target.classes.dir}">
<-include name="com/**"/>
<-/fileset>
<-manifest>
<-attribute name="Test-Version" value="${test-version}"/>
<-/manifest>
<-/jar>
<-/target>

[ June 24, 2004: Message edited by: somkiat puisungnoen ]

[ June 24, 2004: Message edited by: somkiat puisungnoen ]
[ June 24, 2004: Message edited by: somkiat puisungnoen ]
 
somkiat puisungnoen
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm not sure in my answer ....

::: build war file in build.xml :::

 
Bill Dudney
Author
Ranch Hand
Posts: 234
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi David,

Eclipse has always had the ability to build your project without ant. However I don't think even in 3.0 that you can build a j2ee app without ant or a plugin.

Hope this helps!
 
David Yutzy
tumbleweed and gunslinger
Ranch Hand
Posts: 192
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Gah...

That's not at all what I was looking for, let me rephrase the question.

In v3.x of Eclipse, when I click on a build.properties file, I get a dialog that specifies an interface where I can select which files/folders to include in the build, etc. Even when I right-click on the file, there are options to:

* Ant Build
* Ant Build...

The one with the "..." is what i normally run using my build.xml, the other one gives the interface I referenced above. After using Ant for some time, I'm comfortable modifying the XML, but if I could just checkoff the files/folders I want to include, that would be even better!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic