I want to remap some variables and I'm not having any luck with my debugging.

My script and results are below. Can you see what I'm doing wrong?

<?xml version="1.0" encoding="utf-8"?>
<project name="build" default="globular" basedir=".">

 <target name="globular">

   <property name="foo.a.zero" value="0" />
   <property name="foo.a.one" value="1" />

   <echo message="foo:" />
   <echoproperties prefix="foo" />

   <propertyset id="properties-starting-with-foo">
     <propertyref prefix="foo" />
     <mapper type="glob" from="foo*" to="bar*" />
   </propertyset>

   <echo message="bar:" />
   <echoproperties prefix="bar" />

   <echo message="all:" />
   <echoproperties />

 </target>

</project>

Buildfile: C:\work\data\worksps\scratch\scratch\build.xml
globular:

    [echo] foo:
[echoproperties] #Ant properties
[echoproperties] #Wed May 09 13:46:43 MDT 2007
[echoproperties] foo.a.zero=0
[echoproperties] foo.a.one=1

    [echo] bar:
[echoproperties] #Ant properties
[echoproperties] #Wed May 09 13:46:44 MDT 2007

    [echo] all:
[echoproperties] #Ant properties
[echoproperties] #Wed May 09 13:46:44 MDT 2007
[echoproperties] java.runtime.name=Java(TM) 2 Runtime Environment,
Standard Edition
[echoproperties]
sun.boot.library.path=C\:\\work\\apps\\java\\jdk\\150_11\\jre\\bin
[echoproperties] java.vm.version=1.5.0_11-b03
[echoproperties]
ant.library.dir=C\:\\work\\apps\\eclipse\\322\\plugins\\org.apache.ant_1.6.5\\lib
[echoproperties] ant.version=Apache Ant version 1.6.5 compiled on June 2 2005
[echoproperties] ant.java.version=1.5
[echoproperties] java.vm.vendor=Sun Microsystems Inc.
[echoproperties] java.vendor.url=http\://java.sun.com/
[echoproperties] path.separator=;
[echoproperties] java.vm.name=Java HotSpot(TM) Client VM
[echoproperties] file.encoding.pkg=sun.io
[echoproperties] user.country=US
[echoproperties] sun.java.launcher=SUN_STANDARD
[echoproperties] sun.os.patch.level=Service Pack 2
[echoproperties] java.vm.specification.name=Java Virtual Machine Specification
[echoproperties] user.dir=C\:\\work\\data\\worksps\\scratch\\scratch
[echoproperties] java.runtime.version=1.5.0_11-b03
[echoproperties] java.awt.graphicsenv=sun.awt.Win32GraphicsEnvironment
[echoproperties]
eclipse.pdebuild.scripts=/C\:/work/apps/eclipse/322/plugins/org.eclipse.pde.build_3.2.1.r321_v20060823/scripts/
[echoproperties] basedir=C\:\\work\\data\\worksps\\scratch\\scratch
[echoproperties]
java.endorsed.dirs=C\:\\work\\apps\\java\\jdk\\150_11\\jre\\lib\\endorsed
[echoproperties] os.arch=x86
[echoproperties] java.io.tmpdir=C\:\\DOCUME~1\\MARK~1.STA\\LOCALS~1\\Temp\\
[echoproperties] line.separator=\r\n
[echoproperties] java.vm.specification.vendor=Sun Microsystems Inc.
[echoproperties] user.variant=
[echoproperties] os.name=Windows XP
[echoproperties]
ant.home=C\:\\work\\apps\\eclipse\\322\\plugins\\org.apache.ant_1.6.5
[echoproperties]
eclipse.pdebuild.templates=/C\:/work/apps/eclipse/322/plugins/org.eclipse.pde.build_3.2.1.r321_v20060823/templates/
[echoproperties] ant.project.name=build
[echoproperties] sun.jnu.encoding=Cp1252
[echoproperties]
java.library.path=C\:\\work\\apps\\java\\jdk\\150_11\\bin;.;C\:\\WINDOWS\\system32;C\:\\WINDOWS;C\:\\WINDOWS\\system32;C\:\\WINDOWS;C\:\\WINDOWS\\system32\\wbem;c\:\\progra~1\\wavesy~1\\dellpr~1\\access~1\\v5\\;c\:\\docume~1\\mark~1.sta\\apps\\mysql\\bin;c\:\\progra~1\\common~1\\gtk\\2.0\\bin;c\:\\progra~1\\ibm\\sqllib~1\\bin;c\:\\progra~1\\ibm\\sqllib~1\\function;c\:\\progra~1\\ibm\\sqllib~1\\samples\\repl;c\:\\docume~1\\mark~1.sta\\apps;c\:\\progra~1\\gnuwin32\\bin;C\:\\work\\apps\\java\\jdk\\150_11\\bin;c\:\\work\\apps\\apache\\ant\\165\\bin;c\:\\work\\apps\\apache\\maven\\102\\bin;c\:\\work\\apps\\cygwin\\bin;c\:\\docume~1\\mark~1.sta\\apps\\oracle\\ora92\\jre\\14268d~1.2\\bin;c\:\\docume~1\\mark~1.sta\\apps\\oracle\\ora92\\jre\\14268d~1.2\\bin\\client;c\:\\progra~1\\oracle\\jre\\112ecd~1.8\\bin;c\:\\Program
Files\\Microsoft SQL Server\\90\\Tools\\binn\\;C\:\\Program
Files\\Subversion\\bin;C\:\\work\\apps\\eclipse\\322\\configuration\\org.eclipse.osgi\\bundles\\79\\1\\.cp
[echoproperties]
eclipse.pdebuild.home=/C\:/work/apps/eclipse/322/plugins/org.eclipse.pde.build_3.2.1.r321_v20060823/./
[echoproperties] java.specification.name=Java Platform API Specification
[echoproperties] java.class.version=49.0
[echoproperties] sun.management.compiler=HotSpot Client Compiler
[echoproperties]
ant.file.build=C\:\\work\\data\\worksps\\scratch\\scratch\\build.xml
[echoproperties] os.version=5.1
[echoproperties] ant.file=C\:\\work\\data\\worksps\\scratch\\scratch\\build.xml
[echoproperties] user.home=C\:\\Documents and Settings\\mark.stafford
[echoproperties] user.timezone=
[echoproperties] java.awt.printerjob=sun.awt.windows.WPrinterJob
[echoproperties] file.encoding=Cp1252
[echoproperties] java.specification.version=1.5
[echoproperties]
java.class.path=C\:\\work\\apps\\eclipse\\322\\plugins\\org.apache.ant_1.6.5\\lib\\ant.jar;C\:\\work\\apps\\eclipse\\322\\plugins\\org.apache.ant_1.6.5\\lib\\ant-antlr.jar;C\:\\work\\apps\\eclipse\\322\\plugins\\org.apache.ant_1.6.5\\lib\\ant-apache-bcel.jar;C\:\\work\\apps\\eclipse\\322\\plugins\\org.apache.ant_1.6.5\\lib\\ant-apache-bsf.jar;C\:\\work\\apps\\eclipse\\322\\plugins\\org.apache.ant_1.6.5\\lib\\ant-apache-log4j.jar;C\:\\work\\apps\\eclipse\\322\\plugins\\org.apache.ant_1.6.5\\lib\\ant-apache-oro.jar;C\:\\work\\apps\\eclipse\\322\\plugins\\org.apache.ant_1.6.5\\lib\\ant-apache-regexp.jar;C\:\\work\\apps\\eclipse\\322\\plugins\\org.apache.ant_1.6.5\\lib\\ant-apache-resolver.jar;C\:\\work\\apps\\eclipse\\322\\plugins\\org.apache.ant_1.6.5\\lib\\ant-commons-logging.jar;C\:\\work\\apps\\eclipse\\322\\plugins\\org.apache.ant_1.6.5\\lib\\ant-commons-net.jar;C\:\\work\\apps\\eclipse\\322\\plugins\\org.apache.ant_1.6.5\\lib\\ant-icontract.jar;C\:\\work\\apps\\eclipse\\322\\plugins\\org.apache.ant_1.6.5\\lib\\ant-jai.jar;C\:\\work\\apps\\eclipse\\322\\plugins\\org.apache.ant_1.6.5\\lib\\ant-javamail.jar;C\:\\work\\apps\\eclipse\\322\\plugins\\org.apache.ant_1.6.5\\lib\\ant-jdepend.jar;C\:\\work\\apps\\eclipse\\322\\plugins\\org.apache.ant_1.6.5\\lib\\ant-jmf.jar;C\:\\work\\apps\\eclipse\\322\\plugins\\org.apache.ant_1.6.5\\lib\\ant-jsch.jar;C\:\\work\\apps\\eclipse\\322\\plugins\\org.apache.ant_1.6.5\\lib\\ant-junit.jar;C\:\\work\\apps\\eclipse\\322\\plugins\\org.apache.ant_1.6.5\\lib\\ant-launcher.jar;C\:\\work\\apps\\eclipse\\322\\plugins\\org.apache.ant_1.6.5\\lib\\ant-netrexx.jar;C\:\\work\\apps\\eclipse\\322\\plugins\\org.apache.ant_1.6.5\\lib\\ant-nodeps.jar;C\:\\work\\apps\\eclipse\\322\\plugins\\org.apache.ant_1.6.5\\lib\\ant-starteam.jar;C\:\\work\\apps\\eclipse\\322\\plugins\\org.apache.ant_1.6.5\\lib\\ant-stylebook.jar;C\:\\work\\apps\\eclipse\\322\\plugins\\org.apache.ant_1.6.5\\lib\\ant-swing.jar;C\:\\work\\apps\\eclipse\\322\\plugins\\org.apache.ant_1.6.5\\lib\\ant-trax.jar;C\:\\work\\apps\\eclipse\\322\\plugins\\org.apache.ant_1.6.5\\lib\\ant-vaj.jar;C\:\\work\\apps\\eclipse\\322\\plugins\\org.apache.ant_1.6.5\\lib\\ant-weblogic.jar;C\:\\work\\apps\\eclipse\\322\\plugins\\org.apache.ant_1.6.5\\lib\\ant-xalan1.jar;C\:\\work\\apps\\eclipse\\322\\plugins\\org.apache.ant_1.6.5\\lib\\ant-xslp.jar;C\:\\work\\apps\\eclipse\\322\\configuration\\org.eclipse.osgi\\bundles\\10\\1\\.cp\\lib\\remoteAnt.jar;C\:\\Documents
and Settings\\mark.stafford\\.ant\\lib\\ant-contrib-1.0b3.jar;C\:\\Documents
and 
Settings\\mark.stafford\\.ant\\lib\\ant4eclipse-0.5.0.rc1.jar;C\:\\work\\apps\\java\\jdk\\150_11\\lib\\tools.jar;C\:\\work\\apps\\eclipse\\322\\plugins\\org.eclipse.swt.win32.win32.x86_3.2.2.v3236.jar;C\:\\work\\apps\\eclipse.my\\511ga\\eclipse\\plugins\\com.genuitec.javascript.debug.mozilla_5.1.1\\browser.jar;C\:\\work\\apps\\eclipse.my\\511ga\\eclipse\\plugins\\com.genuitec.javascript.debug.mozilla_5.1.1\\htmltransferfix.jar;C\:\\work\\apps\\eclipse.my\\511ga\\eclipse\\plugins\\org.eclipse.atf.mozilla.swt.browser_5.1.1\\mozilla_swt.jar
[echoproperties] user.name=mark.stafford
[echoproperties] foo.a.one=1
[echoproperties] java.vm.specification.version=1.0
[echoproperties] java.home=C\:\\work\\apps\\java\\jdk\\150_11\\jre
[echoproperties] sun.arch.data.model=32
[echoproperties] java.specification.vendor=Sun Microsystems Inc.
[echoproperties] user.language=en
[echoproperties] foo.a.zero=0
[echoproperties] awt.toolkit=sun.awt.windows.WToolkit
[echoproperties] java.vm.info=mixed mode, sharing
[echoproperties] java.version=1.5.0_11
[echoproperties] java.ext.dirs=C\:\\work\\apps\\java\\jdk\\150_11\\jre\\lib\\ext
[echoproperties]
sun.boot.class.path=C\:\\work\\apps\\java\\jdk\\150_11\\jre\\lib\\rt.jar;C\:\\work\\apps\\java\\jdk\\150_11\\jre\\lib\\i18n.jar;C\:\\work\\apps\\java\\jdk\\150_11\\jre\\lib\\sunrsasign.jar;C\:\\work\\apps\\java\\jdk\\150_11\\jre\\lib\\jsse.jar;C\:\\work\\apps\\java\\jdk\\150_11\\jre\\lib\\jce.jar;C\:\\work\\apps\\java\\jdk\\150_11\\jre\\lib\\charsets.jar;C\:\\work\\apps\\java\\jdk\\150_11\\jre\\classes
[echoproperties] java.vendor=Sun Microsystems Inc.
[echoproperties] file.separator=\\
[echoproperties] java.vendor.url.bug=http\://java.sun.com/cgi-bin/bugreport.cgi
[echoproperties] sun.cpu.endian=little
[echoproperties] sun.io.unicode.encoding=UnicodeLittle
[echoproperties] sun.desktop=windows
[echoproperties] sun.cpu.isalist=pentium_pro+mmx pentium_pro
pentium+mmx pentium i486 i386 i86
BUILD SUCCESSFUL
Total time: 402 milliseconds

Reply via email to