ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ashin, Ken" <Kenneth.As...@broadvision.com>
Subject Having trouble getting "condition" to work
Date Thu, 11 Jul 2002 21:05:49 GMT
The following build.xml file produces an error Ant try to process it:

<?xml version="1.0"?>
<project name="version-store" default="all" basedir=".">
  <condition property="WEBLOGIC">
    <equals arg1="${APPSERVER}" arg2="{WebLogic}"/>
  </condition>
</project>


The error is build.xml:3: Unexpected element "condition".

What am I doing wrong?  How can I fix it?

Here's dubug output which is probably overkill, but ...


Thanks in advance for any responses.


Z:\cm_server\root\src\com\broadvision\cm\versionstore>d:\apache\jakarta-ant-
1.4.1\bin\ant.bat -debug      -DCM_SERVER=z:/cm_server
-DAPPSERVER_HOME=d:/bea -DTARGET=d:/versionstore -DDOMAIN=kendomain
-DDEBUG=on -DAPPSERVER=WebLogic 
Ant version 1.4.1 compiled on October 11 2001
Buildfile: build.xml
Setting project property: ant.java.version -> 1.3
Detected Java version: 1.3 in: d:\bea\jdk131\jre
Detected OS: Windows 2000
 +User task: tar     org.apache.tools.ant.taskdefs.Tar
 +User task: fail     org.apache.tools.ant.taskdefs.Exit
 +User task: uptodate     org.apache.tools.ant.taskdefs.UpToDate
 +User task: dependset     org.apache.tools.ant.taskdefs.DependSet
 +User task: java     org.apache.tools.ant.taskdefs.Java
 +User task: execon     org.apache.tools.ant.taskdefs.ExecuteOn
 +User task: echo     org.apache.tools.ant.taskdefs.Echo
 +User task: native2ascii
org.apache.tools.ant.taskdefs.optional.Native2Ascii
 +User task: jjtree     org.apache.tools.ant.taskdefs.optional.javacc.JJTree
 +User task: chmod     org.apache.tools.ant.taskdefs.Chmod
 +User task: javadoc2     org.apache.tools.ant.taskdefs.Javadoc
 +User task: deltree     org.apache.tools.ant.taskdefs.Deltree
 +User task: cvs     org.apache.tools.ant.taskdefs.Cvs
 +User task: jlink
org.apache.tools.ant.taskdefs.optional.jlink.JlinkTask
 +User task: tstamp     org.apache.tools.ant.taskdefs.Tstamp
 +User task: pathconvert     org.apache.tools.ant.taskdefs.PathConvert
 +User task: unjar     org.apache.tools.ant.taskdefs.Expand
 +User task: patch     org.apache.tools.ant.taskdefs.Patch
 +User task: sound
org.apache.tools.ant.taskdefs.optional.sound.SoundTask
 +User task: cccheckout
org.apache.tools.ant.taskdefs.optional.clearcase.CCCheckout
 +User task: mail     org.apache.tools.ant.taskdefs.SendEmail
 +User task: gzip     org.apache.tools.ant.taskdefs.GZip
 +User task: wlrun     org.apache.tools.ant.taskdefs.optional.ejb.WLRun
 +User task: copy     org.apache.tools.ant.taskdefs.Copy
 +User task: filter     org.apache.tools.ant.taskdefs.Filter
 +User task: jar     org.apache.tools.ant.taskdefs.Jar
 +User task: unzip     org.apache.tools.ant.taskdefs.Expand
 +User task: rename     org.apache.tools.ant.taskdefs.Rename
 +User task: propertyfile
org.apache.tools.ant.taskdefs.optional.PropertyFile
 +User task: copyfile     org.apache.tools.ant.taskdefs.Copyfile
 +User task: gunzip     org.apache.tools.ant.taskdefs.GUnzip
 +User task: antcall     org.apache.tools.ant.taskdefs.CallTarget
 +User task: taskdef     org.apache.tools.ant.taskdefs.Taskdef
 +User task: mkdir     org.apache.tools.ant.taskdefs.Mkdir
 +User task: sql     org.apache.tools.ant.taskdefs.SQLExec
 +User task: replace     org.apache.tools.ant.taskdefs.Replace
 +User task: ear     org.apache.tools.ant.taskdefs.Ear
 +User task: ant     org.apache.tools.ant.taskdefs.Ant
 +User task: style     org.apache.tools.ant.taskdefs.XSLTProcess
 +User task: fixcrlf     org.apache.tools.ant.taskdefs.FixCRLF
 +User task: sequential     org.apache.tools.ant.taskdefs.Sequential
 +User task: vssget     org.apache.tools.ant.taskdefs.optional.vss.MSVSSGET
 +User task: genkey     org.apache.tools.ant.taskdefs.GenerateKey
 +User task: zip     org.apache.tools.ant.taskdefs.Zip
 +User task: condition     org.apache.tools.ant.taskdefs.ConditionTask
 +User task: antstructure     org.apache.tools.ant.taskdefs.AntStructure
 +User task: javah     org.apache.tools.ant.taskdefs.optional.Javah
 +User task: javac     org.apache.tools.ant.taskdefs.Javac
 +User task: test     org.apache.tools.ant.taskdefs.optional.Test
 +User task: cab     org.apache.tools.ant.taskdefs.optional.Cab
 +User task: typedef     org.apache.tools.ant.taskdefs.Typedef
 +User task: mparse
org.apache.tools.ant.taskdefs.optional.metamata.MParse
 +User task: ccuncheckout
org.apache.tools.ant.taskdefs.optional.clearcase.CCUnCheckout
 +User task: ejbjar     org.apache.tools.ant.taskdefs.optional.ejb.EjbJar
 +User task: available     org.apache.tools.ant.taskdefs.Available
 +User task: vsslabel
org.apache.tools.ant.taskdefs.optional.vss.MSVSSLABEL
 +User task: cvspass     org.apache.tools.ant.taskdefs.CVSPass
 +User task: move     org.apache.tools.ant.taskdefs.Move
 +User task: wljspc     org.apache.tools.ant.taskdefs.optional.jsp.WLJspc
 +User task: javacc     org.apache.tools.ant.taskdefs.optional.javacc.JavaCC
 +User task: signjar     org.apache.tools.ant.taskdefs.SignJar
 +User task: csc     org.apache.tools.ant.taskdefs.optional.dotnet.CSharp
 +User task: cccheckin
org.apache.tools.ant.taskdefs.optional.clearcase.CCCheckin
 +User task: property     org.apache.tools.ant.taskdefs.Property
 +User task: unwar     org.apache.tools.ant.taskdefs.Expand
 +User task: touch     org.apache.tools.ant.taskdefs.Touch
 +User task: ilasm     org.apache.tools.ant.taskdefs.optional.dotnet.Ilasm
 +User task: get     org.apache.tools.ant.taskdefs.Get
 +User task: javadoc     org.apache.tools.ant.taskdefs.Javadoc
 +User task: antlr     org.apache.tools.ant.taskdefs.optional.ANTLR
 +User task: record     org.apache.tools.ant.taskdefs.Recorder
 +User task: untar     org.apache.tools.ant.taskdefs.Untar
 +User task: delete     org.apache.tools.ant.taskdefs.Delete
 +User task: ejbc     org.apache.tools.ant.taskdefs.optional.ejb.Ejbc
 +User task: copydir     org.apache.tools.ant.taskdefs.Copydir
 +User task: war     org.apache.tools.ant.taskdefs.War
 +User task: ccupdate
org.apache.tools.ant.taskdefs.optional.clearcase.CCUpdate
 +User task: depend     org.apache.tools.ant.taskdefs.optional.depend.Depend
 +User task: parallel     org.apache.tools.ant.taskdefs.Parallel
 +User task: renameext
org.apache.tools.ant.taskdefs.optional.RenameExtensions
 +User task: exec     org.apache.tools.ant.taskdefs.ExecTask
 +User task: apply     org.apache.tools.ant.taskdefs.Transform
 +User task: wlstop     org.apache.tools.ant.taskdefs.optional.ejb.WLStop
 +User task: sleep     org.apache.tools.ant.taskdefs.Sleep
 +User task: rmic     org.apache.tools.ant.taskdefs.Rmic
 +User datatype: fileset     org.apache.tools.ant.types.FileSet
 +User datatype: patternset     org.apache.tools.ant.types.PatternSet
 +User datatype: filterset     org.apache.tools.ant.types.FilterSet
 +User datatype: filelist     org.apache.tools.ant.types.FileList
 +User datatype: description     org.apache.tools.ant.types.Description
 +User datatype: path     org.apache.tools.ant.types.Path
 +User datatype: mapper     org.apache.tools.ant.types.Mapper
Setting project property: java.runtime.name -> Java(TM) 2 Runtime
Environment, Standard Edition
Setting project property: sun.boot.library.path -> d:\bea\jdk131\jre\bin
Setting project property: java.vm.version -> 1.3.1-b24
Setting project property: java.vm.vendor -> Sun Microsystems Inc.
Setting project property: java.vendor.url -> http://java.sun.com/
Setting project property: path.separator -> ;
Setting project property: java.vm.name -> Java HotSpot(TM) Client VM
Setting project property: file.encoding.pkg -> sun.io
Setting project property: java.vm.specification.name -> Java Virtual Machine
Specification
Setting project property: user.dir ->
Z:\cm_server\root\src\com\broadvision\cm\versionstore
Setting project property: java.runtime.version -> 1.3.1-b24
Setting project property: java.awt.graphicsenv ->
sun.awt.Win32GraphicsEnvironment
Setting project property: os.arch -> x86
Setting project property: java.io.tmpdir -> C:\WINNT\TEMP\
Setting project property: line.separator -> 

Setting project property: java.vm.specification.vendor -> Sun Microsystems
Inc.
Setting project property: java.awt.fonts -> 
Setting project property: os.name -> Windows 2000
Setting project property: ant.home -> d:\apache\jakarta-ant-1.4.1\bin\\..
Setting project property: java.library.path ->
d:\bea\jdk131\bin;.;C:\WINNT\System32;C:\WINNT;d:\bv1to1cm\Common\bin;d:\bv1
to1cm\cm\bin.win;D:\apache\jakarta-ant-1.4.1\bin;D:\PROGRA~1\RATIONAL\RATION
~1\NUTCROOT\bin;D:\PROGRA~1\RATIONAL\RATION~1\NUTCROOT\bin\x11;D:\PROGRA~1\R
ATIONAL\RATION~1\NUTCROOT\mksnt;d:\bea\wlserver6.1\bin;d:\bea\jdk131\bin;d:\
oracle\ora81\bin;d:\oracle\ora81\apache\perl\5.00503\bin\mswin32-x86;c:\prog
ra~1\oracle\jre\1.1.7\bin;d:\bea\wlserver6.1\bin\oci817_8;d:\cygwin\bin;d:\p
rogra~1\eps11\bin;d:\bin;D:\Progra~1\micros~1\Common\Tools\WinNT;D:\Progra~1
\micros~1\Common\MSDev98\Bin;D:\Progra~1\micros~1\Common\Tools;D:\Progra~1\m
icros~1\VC98\bin;c:\winnt\system32;c:\winnt;c:\winnt\System32\Wbem;D:\Progra
~1\Maestro.nt\;d:\Progra~1\Rational\ClearCase\bin;D:\Program
Files\Rational\common;D:\Program Files\Rational\ClearQuest;D:\Program
Files\Rational\Rose\TopLink\;D:\Program Files\Rational\Rational
Test;g:\opt\local\atria;g:\opt\local\atria\triggers;g:\Clearcase\CCTools\Per
l5\bin
Setting project property: java.specification.name -> Java Platform API
Specification
Setting project property: java.class.version -> 47.0
Setting project property: os.version -> 5.0
Setting project property: user.home -> C:\Documents and Settings\ashin
Setting project property: user.timezone -> 
Setting project property: java.awt.printerjob -> sun.awt.windows.WPrinterJob
Setting project property: file.encoding -> Cp1252
Setting project property: java.specification.version -> 1.3
Setting project property: java.class.path ->
d:\bea\jdk131\lib\tools.jar;d:\apache\jakarta-ant-1.4.1\bin\\..\lib\jaxp.jar
;d:\apache\jakarta-ant-1.4.1\bin\\..\lib\crimson.jar;d:\apache\jakarta-ant-1
.4.1\bin\\..\lib\ant.jar;d:\bea;d:\bea\jdk131\lib\tools.jar;d:\bea\wlserver6
.1\lib\weblogic_sp.jar;d:\bea\wlserver6.1\lib\weblogic.jar;d:\bea\wlserver6.
1\lib\xmlx.jar;d:\Program Files\Exceed.nt\hcljrcsv.zip;d:\Program
Files\Exceed.nt
Setting project property: user.name -> ashin
Setting project property: java.vm.specification.version -> 1.0
Setting project property: java.home -> d:\bea\jdk131\jre
Setting project property: user.language -> en
Setting project property: java.specification.vendor -> Sun Microsystems Inc.
Setting project property: awt.toolkit -> sun.awt.windows.WToolkit
Setting project property: java.vm.info -> mixed mode
Setting project property: java.version -> 1.3.1
Setting project property: java.ext.dirs -> d:\bea\jdk131\jre\lib\ext
Setting project property: sun.boot.class.path ->
d:\bea\jdk131\jre\lib\rt.jar;d:\bea\jdk131\jre\lib\i18n.jar;d:\bea\jdk131\jr
e\lib\sunrsasign.jar;d:\bea\jdk131\jre\classes
Setting project property: java.vendor -> Sun Microsystems Inc.
Setting project property: file.separator -> \
Setting project property: java.vendor.url.bug ->
http://java.sun.com/cgi-bin/bugreport.cgi
Setting project property: sun.io.unicode.encoding -> UnicodeLittle
Setting project property: sun.cpu.endian -> little
Setting project property: user.region -> US
Setting project property: sun.cpu.isalist -> pentium i486 i386
Setting ro project property: ant.version -> Ant version 1.4.1 compiled on
October 11 2001
Setting ro project property: DEBUG -> on
Setting ro project property: CM_SERVER -> z:/cm_server
Setting ro project property: APPSERVER -> WebLogic
Setting ro project property: DOMAIN -> kendomain
Setting ro project property: TARGET -> d:/versionstore
Setting ro project property: APPSERVER_HOME -> d:/bea
Setting ro project property: ant.file ->
Z:\cm_server\root\src\com\broadvision\cm\versionstore\build.xml
parsing buildfile
Z:\cm_server\root\src\com\broadvision\cm\versionstore\build.xml with URI =
file:Z:/cm_server/root/src/com/broadvision/cm/versionstore/build.xml
Setting ro project property: ant.project.name -> version-store
Adding reference: version-store -> org.apache.tools.ant.Project@41ea29
Setting project property: basedir ->
Z:\cm_server\root\src\com\broadvision\cm\versionstore
Project base dir set to:
Z:\cm_server\root\src\com\broadvision\cm\versionstore

BUILD FAILED

Z:\cm_server\root\src\com\broadvision\cm\versionstore\build.xml:3:
Unexpected element "condition"
	at org.apache.tools.ant.ProjectHelper.parse(ProjectHelper.java:135)
	at
org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:85)
	at org.apache.tools.ant.Main.runBuild(Main.java:439)
	at org.apache.tools.ant.Main.start(Main.java:153)
	at org.apache.tools.ant.Main.main(Main.java:176)

Total time: 0 seconds
Z:\cm_server\root\src\com\broadvision\cm\versionstore>

=============================================================
Kenneth A. Ashin
BroadVision, Inc.
62 Fourth Ave.
Waltham, MA 02451
=============================================================
work:  (781) 768-1031                fax: (781) 290-4969
home:  (617) 332-2647                machine: \\waltham\truth
email: kenneth.ashin@broadvision.com 
=============================================================


--
To unsubscribe, e-mail:   <mailto:ant-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:ant-user-help@jakarta.apache.org>


Mime
View raw message