ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Diane Holt <hol...@yahoo.com>
Subject RE: Annoying error from ant script
Date Thu, 07 Jun 2001 16:40:19 GMT
A-ha! -- spaces in your $HOME. Try adding quotes around $HOME/.antrc --
ie:

 if [ -f "$HOME/.antrc" ] ; then

(Just FYI: the "[:" is equivalent to "test:" -- IOW, it's the name of the
command -- so it reads: 'test' doesn't know what to do with the "and"
after the /cygdrive/c/Documents.)

Diane

--- Thomas Tuft Muller <ttm@online.no> wrote:
> | I'd recommend bracketing the script with set -x/set +x to see what
> line
> | it's complaining about. Once you have that info, if it's something
> you're
> | not sure how to fix, write back.
> |
> 
> 16:34:15> makembx
> + [ -f /cygdrive/c/Documents and Settings/ttm/My Documents/home/.antrc ]
> [: and: unknown operand
> + uname
> + cygwin=true
> + true
> + [ -n C:\Java\Jakarta\Ant-1.3 ]
> + cygpath --unix C:\Java\Jakarta\Ant-1.3
> + ANT_HOME=/cygdrive/c/Java/Jakarta/Ant-1.3
> + [ -n C:\java\jdk1.3 ]
> + cygpath --unix C:\java\jdk1.3
> + JAVA_HOME=/cygdrive/c/java/jdk1.3
> + [ -n
>
C:/Projects/Work/Build/MbxServer/classes;C:/Projects/Work/Build/JavaUtils
>
/classes;C:/Projects/Work/BaseCamp/Libraries/Java/Lucent/Jtapi-1.2;C:/Projec
> ts/W
>
ork/BaseCamp/Libraries/Java/Lucent/Jtapi-1.2/DEBUG/LTJTAPID.JAR;C:/Projects/
> Work
>
/BaseCamp/Libraries/Java/Apache/Log4j-1.1.1/lib/log4j-core.jar;C:/Projects/W
> ork/
>
BaseCamp/Libraries/Java/Apache/RegExp-1.2/lib/jakarta-regexp-1.2.jar;C:/Proj
> ects
> /Work/BaseCamp/Libraries/Java/Noctor/SMS_JDK-2.0.1/lib/sms.jar ]
> + cygpath --path --unix
> C:/Projects/Work/Build/MbxServer/classes;C:/Projects/Wor
>
k/Build/JavaUtils/classes;C:/Projects/Work/BaseCamp/Libraries/Java/Lucent/Jt
> api-
>
1.2;C:/Projects/Work/BaseCamp/Libraries/Java/Lucent/Jtapi-1.2/DEBUG/LTJTAPID
> .JAR
>
;C:/Projects/Work/BaseCamp/Libraries/Java/Apache/Log4j-1.1.1/lib/log4j-core.
> jar;
>
C:/Projects/Work/BaseCamp/Libraries/Java/Apache/RegExp-1.2/lib/jakarta-regex
> p-1.
>
2.jar;C:/Projects/Work/BaseCamp/Libraries/Java/Noctor/SMS_JDK-2.0.1/lib/sms.
> jar
> +
>
CLASSPATH=/home/ttm/projects/Work/Build/MbxServer/classes:/home/ttm/projects
> /W
>
ork/Build/JavaUtils/classes:/home/ttm/projects/Work/BaseCamp/Libraries/Java/
> Luce
>
nt/Jtapi-1.2:/home/ttm/projects/Work/BaseCamp/Libraries/Java/Lucent/Jtapi-1.
> 2/DE
>
BUG/LTJTAPID.JAR:/home/ttm/projects/Work/BaseCamp/Libraries/Java/Apache/Log4
> j-1.
>
1.1/lib/log4j-core.jar:/home/ttm/projects/Work/BaseCamp/Libraries/Java/Apach
> e/Re
>
gExp-1.2/lib/jakarta-regexp-1.2.jar:/home/ttm/projects/Work/BaseCamp/Librari
> es/J
> ava/Noctor/SMS_JDK-2.0.1/lib/sms.jar
> + [ /cygdrive/c/Java/Jakarta/Ant-1.3 =  ]
> + [ /cygdrive/c/java/jdk1.3 !=  ]
> + [  =  ]
> + JAVACMD=/cygdrive/c/java/jdk1.3/bin/java
> + DIRLIBS=/cygdrive/c/Java/Jakarta/Ant-1.3/lib/*.jar
> + [ /cygdrive/c/Java/Jakarta/Ant-1.3/lib/ant.jar !=
> /cygdrive/c/Java/Jakarta/Ant
> -1.3/lib/*.jar ]
> + LOCALCLASSPATH=:/cygdrive/c/Java/Jakarta/Ant-1.3/lib/ant.jar
> + [ /cygdrive/c/Java/Jakarta/Ant-1.3/lib/jaxp.jar !=
> /cygdrive/c/Java/Jakarta/An
> t-1.3/lib/*.jar ]
> +
>
LOCALCLASSPATH=:/cygdrive/c/Java/Jakarta/Ant-1.3/lib/ant.jar:/cygdrive/c/Jav
> a/
> Jakarta/Ant-1.3/lib/jaxp.jar
> + [ /cygdrive/c/Java/Jakarta/Ant-1.3/lib/parser.jar !=
> /cygdrive/c/Java/Jakarta/
> Ant-1.3/lib/*.jar ]
> +
>
LOCALCLASSPATH=:/cygdrive/c/Java/Jakarta/Ant-1.3/lib/ant.jar:/cygdrive/c/Jav
> a/
>
Jakarta/Ant-1.3/lib/jaxp.jar:/cygdrive/c/Java/Jakarta/Ant-1.3/lib/parser.jar
> + [
>
/home/ttm/projects/Work/Build/MbxServer/classes:/home/ttm/projects/Work/Buil
>
d/JavaUtils/classes:/home/ttm/projects/Work/BaseCamp/Libraries/Java/Lucent/J
> tapi
>
-1.2:/home/ttm/projects/Work/BaseCamp/Libraries/Java/Lucent/Jtapi-1.2/DEBUG/
> LTJT
>
APID.JAR:/home/ttm/projects/Work/BaseCamp/Libraries/Java/Apache/Log4j-1.1.1/
> lib/
>
log4j-core.jar:/home/ttm/projects/Work/BaseCamp/Libraries/Java/Apache/RegExp
> -1.2
>
/lib/jakarta-regexp-1.2.jar:/home/ttm/projects/Work/BaseCamp/Libraries/Java/
> Noct
> or/SMS_JDK-2.0.1/lib/sms.jar !=  ]
> +
>
LOCALCLASSPATH=/home/ttm/projects/Work/Build/MbxServer/classes:/home/ttm/pro
> je
>
cts/Work/Build/JavaUtils/classes:/home/ttm/projects/Work/BaseCamp/Libraries/
> Java
>
/Lucent/Jtapi-1.2:/home/ttm/projects/Work/BaseCamp/Libraries/Java/Lucent/Jta
> pi-1
>
.2/DEBUG/LTJTAPID.JAR:/home/ttm/projects/Work/BaseCamp/Libraries/Java/Apache
> /Log
>
4j-1.1.1/lib/log4j-core.jar:/home/ttm/projects/Work/BaseCamp/Libraries/Java/
> Apac
>
he/RegExp-1.2/lib/jakarta-regexp-1.2.jar:/home/ttm/projects/Work/BaseCamp/Li
> brar
>
ies/Java/Noctor/SMS_JDK-2.0.1/lib/sms.jar::/cygdrive/c/Java/Jakarta/Ant-1.3/
> lib/
>
ant.jar:/cygdrive/c/Java/Jakarta/Ant-1.3/lib/jaxp.jar:/cygdrive/c/Java/Jakar
> ta/A
> nt-1.3/lib/parser.jar
> + [ /cygdrive/c/java/jdk1.3 !=  ]
> + test -f /cygdrive/c/java/jdk1.3/lib/tools.jar
> +
>
LOCALCLASSPATH=/home/ttm/projects/Work/Build/MbxServer/classes:/home/ttm/pro
> je
>
cts/Work/Build/JavaUtils/classes:/home/ttm/projects/Work/BaseCamp/Libraries/
> Java
>
/Lucent/Jtapi-1.2:/home/ttm/projects/Work/BaseCamp/Libraries/Java/Lucent/Jta
> pi-1
>
.2/DEBUG/LTJTAPID.JAR:/home/ttm/projects/Work/BaseCamp/Libraries/Java/Apache
> /Log
>
4j-1.1.1/lib/log4j-core.jar:/home/ttm/projects/Work/BaseCamp/Libraries/Java/
> Apac
>
he/RegExp-1.2/lib/jakarta-regexp-1.2.jar:/home/ttm/projects/Work/BaseCamp/Li
> brar
>
ies/Java/Noctor/SMS_JDK-2.0.1/lib/sms.jar::/cygdrive/c/Java/Jakarta/Ant-1.3/
> lib/
>
ant.jar:/cygdrive/c/Java/Jakarta/Ant-1.3/lib/jaxp.jar:/cygdrive/c/Java/Jakar
> ta/A
> nt-1.3/lib/parser.jar:/cygdrive/c/java/jdk1.3/lib/tools.jar
> + test -f /cygdrive/c/java/jdk1.3/lib/classes.zip
> + [  !=  ]
> + true
> + cygpath --path --windows /cygdrive/c/Java/Jakarta/Ant-1.3
> + ANT_HOME=c:\Java\Jakarta\Ant-1.3
> + cygpath --path --windows /cygdrive/c/java/jdk1.3
> + JAVA_HOME=c:\java\jdk1.3
> + cygpath --path --windows
> /home/ttm/projects/Work/Build/MbxServer/classes:/home
>
/ttm/projects/Work/Build/JavaUtils/classes:/home/ttm/projects/Work/BaseCamp/
> Libr
>
aries/Java/Lucent/Jtapi-1.2:/home/ttm/projects/Work/BaseCamp/Libraries/Java/
> Luce
>
nt/Jtapi-1.2/DEBUG/LTJTAPID.JAR:/home/ttm/projects/Work/BaseCamp/Libraries/J
> ava/
>
Apache/Log4j-1.1.1/lib/log4j-core.jar:/home/ttm/projects/Work/BaseCamp/Libra
> ries
>
/Java/Apache/RegExp-1.2/lib/jakarta-regexp-1.2.jar:/home/ttm/projects/Work/B
> aseC
>
amp/Libraries/Java/Noctor/SMS_JDK-2.0.1/lib/sms.jar::/cygdrive/c/Java/Jakart
> a/An
>
t-1.3/lib/ant.jar:/cygdrive/c/Java/Jakarta/Ant-1.3/lib/jaxp.jar:/cygdrive/c/
> Java
> /Jakarta/Ant-1.3/lib/parser.jar:/cygdrive/c/java/jdk1.3/lib/tools.jar
> +
>
LOCALCLASSPATH=c:\projects\Work\Build\MbxServer\classes;c:\projects\Work\Bui
> ld
>
\JavaUtils\classes;c:\projects\Work\BaseCamp\Libraries\Java\Lucent\Jtapi-1.2
> ;c:\
>
projects\Work\BaseCamp\Libraries\Java\Lucent\Jtapi-1.2\DEBUG\LTJTAPID.JAR;c:
> \pro
>
jects\Work\BaseCamp\Libraries\Java\Apache\Log4j-1.1.1\lib\log4j-core.jar;c:\
> proj
>
ects\Work\BaseCamp\Libraries\Java\Apache\RegExp-1.2\lib\jakarta-regexp-1.2.j
> ar;c
>
:\projects\Work\BaseCamp\Libraries\Java\Noctor\SMS_JDK-2.0.1\lib\sms.jar;.;c
> :\Ja
>
va\Jakarta\Ant-1.3\lib\ant.jar;c:\Java\Jakarta\Ant-1.3\lib\jaxp.jar;c:\Java\
> Jaka
> rta\Ant-1.3\lib\parser.jar;c:\java\jdk1.3\lib\tools.jar
> + /cygdrive/c/java/jdk1.3/bin/java -classpath
> c:\projects\Work\Build\MbxServer\c
>
lasses;c:\projects\Work\Build\JavaUtils\classes;c:\projects\Work\BaseCamp\Li
> brar
>
ies\Java\Lucent\Jtapi-1.2;c:\projects\Work\BaseCamp\Libraries\Java\Lucent\Jt
> api-
>
1.2\DEBUG\LTJTAPID.JAR;c:\projects\Work\BaseCamp\Libraries\Java\Apache\Log4j
> -1.1
>
.1\lib\log4j-core.jar;c:\projects\Work\BaseCamp\Libraries\Java\Apache\RegExp
> -1.2
>
\lib\jakarta-regexp-1.2.jar;c:\projects\Work\BaseCamp\Libraries\Java\Noctor\
> SMS_
>
JDK-2.0.1\lib\sms.jar;.;c:\Java\Jakarta\Ant-1.3\lib\ant.jar;c:\Java\Jakarta\
> Ant-
>
1.3\lib\jaxp.jar;c:\Java\Jakarta\Ant-1.3\lib\parser.jar;c:\java\jdk1.3\lib\t
> ools
> .jar -Dant.home=c:\Java\Jakarta\Ant-1.3 org.apache.tools.ant.Main
> -buildfile
> C:/
> Projects/Work/wip/Products/MBX/Server/Build/build.xml compile.MbxServer
> Buildfile: C:\Projects\Work\wip\Products\MBX\Server\Build\build.xml
> 
> prepare:
> 
> compile.AddressingFw:
> 
> compile.ServiceFw:
> 
> compile.Telephony:
> 
> compile.MbxServer:
> 
> BUILD SUCCESSFUL
> 
> Total time: 2 seconds
> 
> --
> 
> Thomas
> 
> 
> 
>
*************************************************************************
> Copyright ERA Technology Ltd. 2001. (www.era.co.uk). All rights
> reserved. 
> Confidential. No liability whatsoever is accepted for any loss or damage
> 
> suffered as a result of accessing this message or any attachments.


=====
(holtdl@yahoo.com)



__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail - only $35 
a year!  http://personal.mail.yahoo.com/

Mime
View raw message