Yes, the way around this problem is to setup the build.xml file to use Ant
1.2's features to add the classpath internally instead of having the
build.sh file do it. That is what Scarab does and that is the correct way.
:-)
-jon
on 12/27/2000 9:22 AM, "Will Stranathan" <[EMAIL PROTECTED]> wrote:
> Is there a limit to how long the total path can be? It seems to get
> corrupted after 520 characters.
>
> For example, the compile target works when I remove the for loop and put in
> CLASSPATH=$CLASSPATH:lib/mm.mysql-2.0.2-bin.jar
> CLASSPATH=$CLASSPATH:../../../../lib/ant.jar
> CLASSPATH=$CLASSPATH:../../../../lib/jasper.jar
> CLASSPATH=$CLASSPATH:../../../../lib/jaxp.jar
> CLASSPATH=$CLASSPATH:../../../../lib/parser.jar
> CLASSPATH=$CLASSPATH:../lib/turbine-2.1-dev-unreleased.jar
> CLASSPATH=$CLASSPATH:../lib/velocity-0.71.jar
>
> However, to get other targets (init) to work, it's necessary to add in
> other jars:
>
> CLASSPATH=$CLASSPATH:lib/mm.mysql-2.0.2-bin.jar
> CLASSPATH=$CLASSPATH:../../../../lib/ant.jar
> CLASSPATH=$CLASSPATH:../../../../lib/jasper.jar
> CLASSPATH=$CLASSPATH:../../../../lib/jaxp.jar
> CLASSPATH=$CLASSPATH:../../../../lib/parser.jar
> CLASSPATH=$CLASSPATH:../lib/turbine-2.1-dev-unreleased.jar
> CLASSPATH=$CLASSPATH:../lib/velocity-0.71.jar
> CLASSPATH=$CLASSPATH:../lib/xalan-1.2.1.jar
> CLASSPATH=$CLASSPATH:../lib/xerces-1.2.1.jar
>
> If, after the cygpath is run against that, I echo the CLASSPATH, I get:
> d:\jdk1.3\lib\mm.mysql-2.0.2-bin.jar;d:\jdk1.3\lib\tools.jar;lib\mm.mysql-2.0.
> 2-
> bin.jar;d:\cygwin\home\administrator\tdk\lib\ant.jar;d:\cygwin\home\administra
> to
> r\tdk\lib\jasper.jar;d:\cygwin\home\administrator\tdk\lib\jaxp.jar;d:\cygwin\h
> om
> e\administrator\tdk\lib\parser.jar;d:\cygwin\home\administrator\tdk\webapps\cd
> tr
> ack\WEB-INF\lib\turbine-2.1-dev-unreleased.jar;d:\cygwin\home\administrator\td
> k\
> webapps\cdtrack\WEB-INF\lib\velocity-0.71.jar;d:\cygwin\home\administrator\tdk
> \w
> ebapps\cdtrack\WEB-INF\lib\x ?s-1.2.1.jar
>
> The last x before the weird character is the 520'th character in the
> classpath.
>
> And actually, I've tried taking out and adding back into the classpath,
> and sometimes things get goofy around 478 or so.
>
> Unfortunately, this looks like a problem with Cygwin, and off the top of
> my head, I can't think of an easy way around this - except to put all
> the jars at the root of the drive and hope the classpath doesn't get too
> long.
>
> The reason things work under scarab is because only about 4 jars get
> added to the CLASSPATH total.
>
> wts
--
Honk if you love peace and quiet.
------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Search: <http://www.mail-archive.com/turbine%40list.working-dogs.com/>
Problems?: [EMAIL PROTECTED]