ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "David Weintraub" <qazw...@gmail.com>
Subject Re: How to use ant in web application without system path setup under linux
Date Mon, 13 Aug 2007 04:41:36 GMT
Why not get a USB flash drive and install Ant on that? That way, if
you go to a PC without Ant, you can simply insert your USB flash drive
into the PC and run Ant from there. I do that with the Apache web
server.

Another possibility is to install Ant into your Subversion project.
When you checkout the project, you will be checking out an installed
version of Ant.

Your method of installing individual JAR files for Ant and then
running a customized Ant script isn't really saving you any time,
effort, or even that much room on your disk;. By the time you install
the individual files you need for Ant, and get them up and running,
you could have easily downloaded and unzipped the whole Ant archive.

On 8/12/07, 贾昊林/Albert Jia <saharabear@gmail.com> wrote:
> Hi,Bill
>
> Thanks for your reply.
>
> If I do not want to install ant, just want to use it in my project. I am not sure whether
I express myself clearly.I am sorry that I am not english speaking.
>
> I just want to use it with my project.If I check out the source from subversion at another
PC which do not has ANT installed, I also want to use ant, So I want to integrate ant to my
project.
>
> Just so.Thanks.
>
> Albert Jia
>
>
>
>
> On Sun, Aug 12, 2007 at 08:44:34AM -0800, Bill Rich wrote:
> >You might try setting the ANT_HOME env variable and adding the /bin dir
> >of ANT_HOME to your PATH var. I have both of those set on my machine
> >from the installation of ANT.
> >HTH Bill
> >
> >贾昊林/Albert Jia wrote:
> >>Hi,David
> >>
> >>Thanks for your reply. But sometimes, I have to code between different
> >>workstations, and these workstations sometimes just installed jdk without
> >>ant. In order to work anytime without spending time to install ant, I want
> >>to use ant.jar directly. that's why I asked this question. Thanks.
> >>
> >>I am not sure it will work or not, and I didn't find any useful reference.
> >>
> >>Kind Regards!
> >>
> >>Albert Jia
> >>
> >>
> >>
> >>On Sun, Aug 12, 2007 at 09:58:51AM -0400, Qazwart wrote:
> >>
> >>>I'm not sure why you cannot simply install Ant as a complete package.
> >>>I haven't used CentOS, but I know Ant installs with no problems on
> >>>Redhat. And, you can install Ant completely local to your $HOME
> >>>directory.
> >>>
> >>>The Ant binary distribution runs under any system that has JDK 1.4 or
> >>>greater installed (and probably even works under JDK 1.3). You don't
> >>>need administrative or root permission to install Ant either since it
> >>>can reside in any directory, and if installed under Windows, does not
> >>>need access to the registry.
> >>>
> >>>So, why not just install all of Ant?
> >>>
> >>>On Aug 12, 2007, at 7:53 AM, 贾昊林/Albert Jia wrote:
> >>>
> >>>
> >>>>hi,
> >>>>
> >>>>I want to use ant in my web application,but I do not have ant
> >>>>installed in my OS(centOS5).
> >>>>
> >>>>So,I copy ant.jar,ant-launcher.jar and ant-junit.jar to /app/
> >>>>devlib,then write a shell like below to run ant tasks
> >>>>code:
> >>>>
> >>>>#!/bin/sh
> >>>>export APP_HOME=/home/saharabear/workspace/jpetstore
> >>>>export BUILD_CP=${CLASSPATH}
> >>>>export BUILD_CP=${BUILD_CP}:${JAVA_HOME}/lib/tools.jar;
> >>>>export BUILD_CP=${BUILD_CP}:${APP_HOME}/devlib/ant.jar;
> >>>>export BUILD_CP=${BUILD_CP}:${APP_HOME}/devlib/ant-junit.jar;
> >>>>export BUILD_CP=${BUILD_CP}:${APP_HOME}/devlib/ant-launcher.jar;
> >>>>export BUILD_CP=${BUILD_CP}:${APP_HOME}/devlib/junit.jar;
> >>>>${JAVA_HOME}/bin/java -classpath "${BUILD_CP}"
> >>>>org.apache.tools.ant.Main -buildfile build.xml
> >>>>
> >>>>
> >>>>but I got error like:
> >>>>code:
> >>>>
> >>>>Exception in thread "main" java.lang.NoClassDefFoundError: org/
> >>>>apache/tools/launch/Launcher
> >>>>
> >>>>
> >>>>I am not sure the syntax is right or not, and I didn't find
> >>>>anything useful from Google.
> >>>>
> >>>>So, I do not know how to use it now, I need help here ,Thanks.
> >>>>
> >>>>
> >>>>
> >>>>----------
> >>>>Albert Jia
> >>>>
> >>>>---------------------------------------------------------------------
> >>>>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
> >>>>For additional commands, e-mail: user-help@ant.apache.org
> >>>>
> >>>>
> >>>David Weintraub
> >>>david@weintraub.name
> >>>qazwart@gmail.com
> >>>
> >>>
> >>>
> >>>---------------------------------------------------------------------
> >>>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
> >>
> >>
> >>
> >>
> >>
> >
> >---------------------------------------------------------------------
> >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
>
>


-- 
--
David Weintraub
qazwart@gmail.com
Mime
View raw message