• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Liutauras Vilda
  • Paul Clapham
Sheriffs:
  • paul wheaton
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Piet Souris
Bartenders:
  • Mike London

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

 
tumbleweed and gunslinger
Posts: 192
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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...
 
Ranch Hand
Posts: 1312
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I'm not sure in my answer ....

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

 
Author
Posts: 234
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
Posts: 192
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
reply
    Bookmark Topic Watch Topic
  • New Topic