ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Schaefer, Don" <don_schae...@xelus.com>
Subject RE: Windows cmd line length problems
Date Mon, 15 Oct 2001 21:25:21 GMT
We have been using manifest jars for some time to resolve a similar problem.


We ran into this with running WLS as an NT Service.  The command line length
max is 1024.  Between the use of a manifest jar and weblogics' .cp file we
were able to keep going....

-----Original Message-----
From: Jesse Vitrone [mailto:jvitrone@GiantBear.com]
Sent: Monday, October 15, 2001 3:39 PM
To: ant-user@jakarta.apache.org
Subject: RE: Windows cmd line length problems


sweet, works like charm...thanks a lot

Jesse

> -----Original Message-----
> From: Ylan Segal [mailto:ylan@digiworks.tv]
> Sent: Monday, October 15, 2001 3:13 PM
> To: ant-user@jakarta.apache.org
> Subject: RE: Windows cmd line length problems
> 
> 
> You can set your classpath dinamycally in ant to include all 
> your jars...
> [Parts of my own build.file]
> ...
> <path id="project.classpath">
> 	<pathelement path="${classpath}"/>
> 	<fileset dir="${lib.home}">
> 		<include name="**/*.jar"/>
> 	</fileset>
> 	<pathelement location="${src.home}"/>
> </path>
> ....
> This will add all .jar files in {lib.home} to 
> project.classpath path. Then
> you can use it like:
> 
> ...
> <target name="compile" depends="prepare">
> 	<javac
> 		srcdir="${src.home}"
> 		destdir="${compile.to}\"
> 		debug="on"
> 		optimize="on" >
> 		<classpath refid="project.classpath"/>
> 	</javac>
> </target>
> ...
> 
> Pretty cool, don't you think? This is a great way to do it, 
> because if new
> jars are added you just put them into your lib.home (or 
> whatever you wish to
> call it) and that is it.. they will be in your classpath.
> 
> Good Luck.
> 
> Ylan.
> 
> > -----Original Message-----
> > From: Jesse Vitrone [mailto:jvitrone@GiantBear.com]
> > Sent: Monday, October 15, 2001 12:35 PM
> > To: ant-user@jakarta.apache.org
> > Subject: Windows cmd line length problems
> >
> >
> > I'm sure people have run into this problem before...is there a good
> > solution?
> >
> > We have a build.bat file which creates the needed 
> classpath, then passes
> > that on to Ant to do the build.  We have a lot of jars that 
> need to be
> > in the classpath.  Recently, we needed to add another jar, 
> and now the
> > build.bat fails because the line length is too long.
> >
> > Are we not using Ant right?  Is there a way around this problem that
> > we're having?  I would think that people have run into this problem
> > before.
> >
> > Thanks in advance,
> > 	Jesse
> >
> >
> 
> 

Mime
View raw message