[ng-dhtml] ant frustrations

Martin Cooper mfncooper at gmail.com
Wed Sep 29 22:40:36 CDT 2004


On Wed, 29 Sep 2004 18:29:28 -0700, Alex Russell <alex at dojotoolkit.org> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
> 
> On Wednesday 29 September 2004 4:30 pm, Martin Cooper wrote:
> > On Wed, 29 Sep 2004 15:42:52 -0700, Alex Russell
> <alex at dojotoolkit.org> wrote:
> [snip]
> > > Anyone have ideas on how I can get things in the lib/ directory
> > > into the ant classpath without resorting to shell scripts?
> >
> > If nothing else, you could use a funky trick that I've used, which
> > is to have a 'check-config' target that does the following:
> >
> > * Check to see if the relevant jars are in ${user.home}/.ant/lib
> > * If not, copy them there (assuming you know where to get them)
> > * Echo a message to the console saying that they need to restart
> > Ant
> >
> > Not lovely, but it gets the job done.
> 
> That sounds like the likely winner at this point. I am, however,
> stupified that there's no way to do the equivalent of:
> 
>        import sys; sys.path.append("path/to/my/jar")
> 
> in ant.

I'm pretty sure that this is what Maven uses Forehead for.

http://forehead.werken.com/

Alternatively, you could fire up a second Ant script from within the
first, specifying a different class path.

Martin.


> Maybe if we had an ant-compiler...or not. At least it's only
> complaining about a FEW more errors on Linux than on OS X at this
> point. Inexplicably, it still works.
> 
> /me makes the ritual sacrifice of neurons to the Java gods
> 
> Regards
> 
> - --
> Alex Russell
> alex at dojotoolkit.org
> alex at netWindows.org F687 1964 1EF6 453E 9BD0 5148 A15D 1D43 AB92 9A46
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.2.4 (Darwin)
> 
> iD8DBQFBW2F4oV0dQ6uSmkYRAiYBAJ4i9Emm+oBQbrAaTyTA4wYXh6m0FwCfQwzH
> USgk2yxU/Ue9Z8CubrYctgg=
> =TitT
> 
> 
> -----END PGP SIGNATURE-----
> 
> _______________________________________________
> NG-DHTML mailing list
> NG-DHTML at netwindows.org
> http://netwindows.org/mailman/listinfo/ng-dhtml_netwindows.org
>



More information about the NG-DHTML mailing list