ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "M.A.Dunphy" <madun...@bigfoot.com>
Subject RE: ant1.2 - wlrun
Date Fri, 23 Feb 2001 18:08:28 GMT
This has been fixed!! I think it was to do with the carriage-return/LF at
the end!!! (see below)

Mick

-----Original Message-----
From: M.A.Dunphy [mailto:madunphy@bigfoot.com]
Sent: 23 February 2001 17:22
To: Ant-User (E-mail)
Subject: ant1.2 - wlrun


Hi all,

I have a target, that runs a wlrun task as seen below

      <wlrun jvmargs="-ms64m -mx96m ${jvmargs}"
classpath="${weblogic.home}/lib/weblogic510sp8boot.jar:${weblogic.home}/clas
ses/boot:${sun.boot.class.path}:${weblogic.boot.class.path}
" home="${weblogic.home}"
wlclasspath="${weblogic.home}/lib/weblogic510sp8.jar:${weblogic.home}/classe
s:${weblogic.home}/license:${weblogic.home}/lib/weblogicaux.jar:${weblogic.s
erver.path}/serverclasses:${weblogic.class.path}
" properties="${weblogic.properties}" policy="${weblogic.policy}"/>


and with the properties ${weblogic.boot.class.path} & ${weblogic.class.path}
empty this invokes weblogic as follows:

    [wlrun] Forking java
-Dweblogic.class.path=C:\weblogic\lib\weblogic510sp8.jar;C:\weblogic\classes
;C:\weblogic\license;C:\weblogic\lib\weblogicaux.jar;C:\weblogic\myserver\se
rverclasses;C:\Example\Development -Djava.security.manager
-Djava.security.policy==C:\weblogic\weblogic.policy
-Dweblogic.system.home=C:\weblogic -Dweblogic.system.name=myserver
-Dweblogic.system.propertiesFile=weblogic.properties -ms64m -mx96m
-classpath
C:\weblogic\lib\weblogic510sp8boot.jar;C:\weblogic\classes\boot;C:\jdk1.3\jr
e\lib\rt.jar;C:\jdk1.3\jre\lib\i18n.jar;C:\jdk1.3\jre\lib\sunrsasign.jar;C:\
jdk1.3\jre\classes;C:\Example\Development weblogic.Server

Why is ant appending the directory where the ant file is located onto the
-classpath & -Dweblogic.class.path values? This causes a problem when I sent
the properties ${weblogic.boot.class.path} & ${weblogic.class.path}, for
example if ${weblogic.class.path}=mick.jar, weblogic is invoked as:

    [wlrun] Forking java
-Dweblogic.class.path=C:\weblogic\lib\weblogic510sp8.jar;C:\weblogic\classes
;C:\weblogic\license;C:\weblogic\lib\weblogicaux.jar;C:\weblogic\myserver\se
rverclasses;C:\Example\Development\mick.jar -Djava.security.manager
-Djava.security.policy==C:\weblogic\weblogic.policy
-Dweblogic.system.home=C:\weblogic -Dweblogic.system.name=myserver
-Dweblogic.system.propertiesFile=weblogic.properties -ms64m -mx96m
-classpath
C:\weblogic\lib\weblogic510sp8boot.jar;C:\weblogic\classes\boot;C:\jdk1.3\jr
e\lib\rt.jar;C:\jdk1.3\jre\lib\i18n.jar;C:\jdk1.3\jre\lib\sunrsasign.jar;C:\
jdk1.3\jre\classes;C:\Example\Development weblogic.Server


Mime
View raw message