ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Marc Farrow" <marc.far...@gmail.com>
Subject Re: dev-list - Calling Ant within a servlet/webapp
Date Fri, 18 Aug 2006 11:57:18 GMT
Because the build files are not maintained by us.  We just use them.

On 8/17/06, Kev Jackson <foamdino@gmail.com> wrote:
>
>
> On 16 Aug 2006, at 19:26, Marc Farrow wrote:
>
> > I have some servlet and I am trying to call an Ant script within
> > the class
> > to compile a "project".  All of the references in the build script
> > are not
> > relative, therefore some of the classpath references are not
> > correct.  I
> > know I can change the properties, etc to fix this.  However, due to
> > the
> > nature of our environment we do not want to do this.  With all that
> > being
> > said, I do know that all the classpath entries that I need to
> > compile the
>
> Is there a reason why you don't want to use the Ant API by itself?
> Why do you need to load the build.xml file?  It seems that the real
> problem you have is that programmatically Ant doesn't have the same
> relative references as Ant running a build file, so my advice is to
> remove the problem (build file) and simply use the Ant jar as an API
> and have your rules specified in Java instead of XML.
>
> Kev
>
> --
> "That government is best which governs not at all" - Henry Thoreau
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
> For additional commands, e-mail: dev-help@ant.apache.org
>
>


-- 
Marc Farrow

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message