ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michael Polo <mp...@infinetcommunications.com>
Subject xmlproperty task not found in 1.5.3-1 (version problems?)
Date Thu, 22 May 2003 15:39:28 GMT
Hello All,

This is my first post, so please bear with me.....

I have been trying to upgrade ant to 1.5.3 on my linux box running 7.2
Despite my best efforts, I cannot get my ant install to version anything but
1.4.1

My apologies if this has been discussed already, I could not find a solution
in the search,
but here are the details...

I am trying to use a build.xml that uses the task <xmlproperty> and I get
this error.
(I have added an echo to the ant script to see what the classpath was...)



ant paramtemp
/usr/java/jdk1.3.1/bin/java -classpath
/home/mpolo/apache-ant-1.5.3-1/lib/xml-apis.jar:/home/mpolo/apache-ant-1.5.3
-1/lib/xercesImpl.jar:/home/mpolo/apache-ant-1.5.3-1/lib/optional.jar:/home/
mpolo/apache-ant-1.5.3-1/lib/ant.jar:/usr/java/jdk1.3.1/lib/tools.jar
-Dant.home=/home/mpolo/apache-ant-1.5.3-1 org.apache.tools.ant.Main
paramtemp
Buildfile: build.xml

paramtemp:
     [echo] test

BUILD FAILED

/export/home/mpolo/apache-ant-1.5.3-1/lib/build.xml:29: Could not create
task of type: xmlproperty. Common solutions are to use taskdef to declare
your task, or, if this is an optional task, to put the optional.jar in the
lib directory of your ant installation (ANT_HOME).

Total time: 0 seconds



Here is the debug of the command just in case it may help anyone out there. 
If this is a JDK problem I might be out of my depth... (Sigh)

Much Thanks

Michael Polo


>> begin debug output

ant -debug paramtemp
/usr/java/jdk1.3.1/bin/java -classpath
/home/mpolo/apache-ant-1.5.3-1/lib/xml-apis.jar:/home/mpolo/apache-ant-1.5.3
-1/lib/xercesImpl.jar:/home/mpolo/apache-ant-1.5.3-1/lib/optional.jar:/home/
mpolo/apache-ant-1.5.3-1/lib/ant.jar:/usr/java/jdk1.3.1/lib/tools.jar
-Dant.home=/home/mpolo/apache-ant-1.5.3-1 org.apache.tools.ant.Main -debug
paramtemp
Ant version 1.4.1 compiled on May 18 2002
Buildfile: build.xml
Setting project property: ant.java.version -> 1.3
Detected Java version: 1.3 in: /usr/java/jdk1.3.1/jre
Detected OS: Linux
 +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: 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: 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: mail     org.apache.tools.ant.taskdefs.SendEmail
 +User task: gzip     org.apache.tools.ant.taskdefs.GZip
 +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: 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: 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: javac     org.apache.tools.ant.taskdefs.Javac
 +User task: typedef     org.apache.tools.ant.taskdefs.Typedef
 +User task: available     org.apache.tools.ant.taskdefs.Available
 +User task: cvspass     org.apache.tools.ant.taskdefs.CVSPass
 +User task: move     org.apache.tools.ant.taskdefs.Move
 +User task: signjar     org.apache.tools.ant.taskdefs.SignJar
 +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: get     org.apache.tools.ant.taskdefs.Get
 +User task: javadoc     org.apache.tools.ant.taskdefs.Javadoc
 +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: copydir     org.apache.tools.ant.taskdefs.Copydir
 +User task: war     org.apache.tools.ant.taskdefs.War
 +User task: parallel     org.apache.tools.ant.taskdefs.Parallel
 +User task: exec     org.apache.tools.ant.taskdefs.ExecTask
 +User task: apply     org.apache.tools.ant.taskdefs.Transform
 +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 ->
/usr/java/jdk1.3.1/jre/lib/i386
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 ->
/export/home/mpolo/apache-ant-1.5.3-1/lib
Setting project property: java.runtime.version -> 1.3.1-b24
Setting project property: java.awt.graphicsenv ->
sun.awt.X11GraphicsEnvironment
Setting project property: os.arch -> i386
Setting project property: java.io.tmpdir -> /tmp
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 -> Linux
Setting project property: ant.home -> /home/mpolo/apache-ant-1.5.3-1
Setting project property: java.library.path ->
/usr/java/jdk1.3.1/jre/lib/i386:/usr/java/jdk1.3.1/jre/lib/i386/native_threa
ds/:/usr/java/jdk1.3.1/jre/lib/i386/client:/usr/java/jdk1.3.1/jre/../lib/i38
6
Setting project property: java.specification.name -> Java Platform API
Specification
Setting project property: java.class.version -> 47.0
Setting project property: os.version -> 2.2.16-22smp
Setting project property: user.home -> /export/home/mpolo
Setting project property: user.timezone -> 
Setting project property: java.awt.printerjob -> sun.awt.motif.PSPrinterJob
Setting project property: file.encoding -> ISO-8859-1
Setting project property: java.specification.version -> 1.3
Setting project property: java.class.path ->
/home/mpolo/apache-ant-1.5.3-1/lib/xml-apis.jar:/home/mpolo/apache-ant-1.5.3
-1/lib/xercesImpl.jar:/home/mpolo/apache-ant-1.5.3-1/lib/optional.jar:/home/
mpolo/apache-ant-1.5.3-1/lib/ant.jar:/usr/java/jdk1.3.1/lib/tools.jar
Setting project property: user.name -> mpolo
Setting project property: java.vm.specification.version -> 1.0
Setting project property: java.home -> /usr/java/jdk1.3.1/jre
Setting project property: user.language -> en
Setting project property: java.specification.vendor -> Sun Microsystems Inc.
Setting project property: java.vm.info -> mixed mode
Setting project property: java.version -> 1.3.1
Setting project property: java.ext.dirs -> /usr/java/jdk1.3.1/jre/lib/ext
Setting project property: sun.boot.class.path ->
/usr/java/jdk1.3.1/jre/lib/rt.jar:/usr/java/jdk1.3.1/jre/lib/i18n.jar:/usr/j
ava/jdk1.3.1/jre/lib/sunrsasign.jar:/usr/java/jdk1.3.1/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 -> 
Setting ro project property: ant.version -> Ant version 1.4.1 compiled on
May 18 2002
Setting ro project property: ant.file ->
/export/home/mpolo/apache-ant-1.5.3-1/lib/build.xml
parsing buildfile /export/home/mpolo/apache-ant-1.5.3-1/lib/build.xml with
URI = file:/export/home/mpolo/apache-ant-1.5.3-1/lib/build.xml
Setting ro project property: ant.project.name -> cvsbuild
Adding reference: cvsbuild -> org.apache.tools.ant.Project@662dc8
Setting project property: basedir ->
/export/home/mpolo/apache-ant-1.5.3-1/lib
Project base dir set to: /export/home/mpolo/apache-ant-1.5.3-1/lib
   +Task: property
Setting project property: export.dir -> //sites/
   +Task: property
Setting project property: temp.dir -> //sites/anttemptemp/
 +Target: prepare
   +Task: mkdir
 +Target: clean
   +Task: delete
 +Target: mktemp
   +Task: mkdir
 +Target: paramtemp
   +Task: echo
   +Task: echo
 +Target: publish
   +Task: echo
   +Task: cvs
   +Task: tstamp
   +Task: echo
 +Target: export
   +Task: delete
   +Task: mkdir
   +Task: cvs
   +Task: copy
   +Task: tstamp
   +Task: echo
 +Target: update
   +Task: echo
 +Target: refresh
   +Task: echo
Build sequence for target `paramtemp' is [paramtemp]
Complete build sequence is [paramtemp, prepare, clean, publish, refresh,
export, mktemp, update]

paramtemp:
     [echo] test
[xmlproperty] Could not create task of type: xmlproperty Common solutions
are adding the task to defaults.properties and executing bin/bootstrap

BUILD FAILED

/export/home/mpolo/apache-ant-1.5.3-1/lib/build.xml:29: Could not create
task of type: xmlproperty. Common solutions are to use taskdef to declare
your task, or, if this is an optional task, to put the optional.jar in the
lib directory of your ant installation (ANT_HOME).
        at
org.apache.tools.ant.UnknownElement.makeTask(UnknownElement.java:153)
        at
org.apache.tools.ant.UnknownElement.maybeConfigure(UnknownElement.java:83)
        at org.apache.tools.ant.Task.perform(Task.java:216)
        at org.apache.tools.ant.Target.execute(Target.java:184)
        at org.apache.tools.ant.Target.performTasks(Target.java:202)
        at org.apache.tools.ant.Project.executeTarget(Project.java:601)
        at org.apache.tools.ant.Project.executeTargets(Project.java:560)
        at org.apache.tools.ant.Main.runBuild(Main.java:454)
        at org.apache.tools.ant.Main.start(Main.java:153)
        at org.apache.tools.ant.Main.main(Main.java:176)

Total time: 0 seconds


Mime
View raw message