You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by James Abley <ja...@gmail.com> on 2008/04/01 22:17:39 UTC

Re: NetBeans target "run" to .bat file

>  > > Andrew n marshall wrote ..
>  > >
>  > >> This may be more of a general Java question than a specific Ant
>  > >> question, but here it goes....
>  > >>
>  > >> I have a project that I built with NetBeans.  NetBeans gave me a nice
>  > >> ant file that works great.  But I need non-developers who don't have ant
>  > >> installed to be able to run it.
>  > >>

Why? You have a working ANT build file. Why can't you install ANT
where required? Maybe you could provide a batch file that checks for
the existence of ANT and installs it as required?

Otherwise, I'd suggest just using your shell (cmd.exe) to build up the
correct classpath, and then create a batch file from that.

HTH,

James

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


Re: NetBeans target "run" to .bat file (solved)

Posted by Andrew n marshall <An...@mail.com>.
James Abley wrote:
> Why? You have a working ANT build file. Why can't you install ANT 
> where required? Maybe you could provide a batch file that checks for 
> the existence of ANT and installs it as required?
Not to be facetious, but do you require ant for your project's 
distributions?


> Otherwise, I'd suggest just using your shell (cmd.exe) to build up the correct classpath, and then create a batch file from that.
>   

Well, yes, this was an attempt in that direction.  It still confuses 
me.  It complains about a missing javax/vecmath/Tuple3f.class, but I've 
put the vecmath.jar right there in the -classpath argument.  I've 
verified the vecmath.jar path, and that it contains said .class file.  
So I remain very confused why I might be getting this error in this 
batch file, but not via "ant run".


Irk...  Nevermind.  I just made some changes, making the paths in the 
classpath relative, and its working now.  I can't explain it.  Not sure 
why the absolute paths failed from the batch file.

Thanks anyways.


Anm

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


RE: NetBeans target "run" to .bat file

Posted by "Anderson, Rob (Global Trade)" <Ro...@nike.com>.
To run an ant build file, you need ant. If the users are on your
network, and have access to some of the same shared drives as you, then
you could put ant on a shared drive and run it from a wrapper script
(.bat) that sets up ANT_HOME, JAVA_HOME, etc.

-Rob Anderson

-----Original Message-----
From: James Abley [mailto:james.abley@gmail.com] 
Sent: Tuesday, April 01, 2008 1:18 PM
To: Ant Users List
Subject: Re: NetBeans target "run" to .bat file

>  > > Andrew n marshall wrote ..
>  > >
>  > >> This may be more of a general Java question than a specific Ant
>  > >> question, but here it goes....
>  > >>
>  > >> I have a project that I built with NetBeans.  NetBeans gave me a
nice
>  > >> ant file that works great.  But I need non-developers who don't
have ant
>  > >> installed to be able to run it.
>  > >>

Why? You have a working ANT build file. Why can't you install ANT
where required? Maybe you could provide a batch file that checks for
the existence of ANT and installs it as required?

Otherwise, I'd suggest just using your shell (cmd.exe) to build up the
correct classpath, and then create a batch file from that.

HTH,

James

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
For additional commands, e-mail: user-help@ant.apache.org