You are here

What would be needed to get Apache Ant ported ?

4 posts / 0 new
Last post
sirgeek
Offline
Last seen: 10 years 7 months ago
Joined: 2010-09-14 16:59
What would be needed to get Apache Ant ported ?

Afternoon All,

I'm trying to get a thumb drive setup so that I can use it to run some automated tests on individual people's machines (so that they can see everything on their machine, and not have to install anything).

I'm trying to setup ant (as the scripts to run everything are written in ant).

It needs Java (which I have installed on the thumbdrive). Should I just hardcode the JAVA_HOME to the JRE on the thumbdrive ?

Thanks for any help/suggestions !

Chris Morgan
Chris Morgan's picture
Offline
Last seen: 8 years 10 months ago
Joined: 2007-04-15 21:08
Yep

I'm not sure exactly how Ant is distributed; if it comes as an exe, setting JAVA_HOME and running it may work - but probably won't because they tend to search in the registry first. If it comes as an executable jar file, you can use the Java Portable Launcher and it will probably work straight off.

You can also read the page on Java applications in the PortableApps.com Launcher manual. It's fairly complete in its explanations on them and making them portable with the PortableApps.com Launcher. If you have any more questions with it, please ask me.

I am a Christian and a developer and moderator here.

“A soft answer turns away wrath, but a harsh word stirs up anger.” – Proverbs 15:1

sirgeek
Offline
Last seen: 10 years 7 months ago
Joined: 2010-09-14 16:59
Thanks

The way ant is setup, it is a windows batch file. I'm thinking that it could be modified pretty easily to use the Java Launcher.

I'll see what I can do and let you know.

Thanks for the help !

sirgeek
Offline
Last seen: 10 years 7 months ago
Joined: 2010-09-14 16:59
Ok.. It seems pretty simple

It looks like the only thing needed for ant would be to do one of 2 things.

1) Modify the ant.bat script that is included to have JAVA_HOME defined as "PortableApps\CommonFiles\Java"

2) Have some sort of "autoexec.bat" file as part of the Portable Apps stuff (to define system variables, etc.) and define JAVA_HOME in there.

Other than that, doing #1 works quite well. Now I have to move my scripts to the drive and see if I can run my scripts there.

Log in or register to post comments