ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Jan.Mate...@rzf.fin-nrw.de>
Subject AW: Howto debug where properties are set?
Date Mon, 17 Nov 2008 07:46:01 GMT
Where is your ${J2SE-1.4} property set?
If this property HAS to be set, you could ensure that with <fail>.
If an empty song is valid, you could also add an <not><equals> condition.

<condition property="bundleBootClasspath" value="${J2SE-1.4}">
  <and>
    <isset property="J2SE-1.4"/>
    <not><equals arg1="${J2SE-1.4}" arg2="" trim="true"/></not>
  </and>
</condition>
<property name="bundleBootClasspath" value="VALUE-IF-NOTHING-MATCHES"/>


Jan

>-----Urspr√ľngliche Nachricht-----
>Von: Marc Weber [mailto:marco-oweber@gmx.de] 
>Gesendet: Samstag, 15. November 2008 13:17
>An: user@ant.apache.org
>Betreff: Howto debug where properties are set?
>
>Iv'e trouble compiling eclipse using the provided build.xml.
>I've tracked it down to
>
><condition property="bundleBootClasspath" value="${J2SE-1.4}"
>          <isset property="J2SE-1.4"/>
>  </condition>
>
>
>setting an empty bundleBootClasspath because the proprety "JSE-1.4" is
>set to an empty string..
>
>Now the ant -d output prints something like
>
>  [... thousands of lines ..]
>
>     [subant] Entering 
>/tmp/nix-build-h3f3l1kd48dxs6iizslwi4dzknwl8vca-eclipse-classic
-3.5M3.drv-0/plugins/org.eclipse.jdt.compiler.tool/customBuildCallbacks.xml...
>  Build sequence for target(s) `post.clean' is [post.clean]
>  Complete build sequence is [post.clean, pre.gather.logs, 
>pre.name, pre.@dot, post.gather.bin.parts, post.name, 
>pre.gather.sources, post.compile.name, post.build.jars, 
>post.build.sources, post.@dot, noDefault, post.compile.@dot, 
>pre.clean, post.gather.sources, post.gather.logs, 
>pre.build.jars, pre.build.sources, pre.gather.bin.parts, ]
>
>  post.clean:
>     [subant] Exiting 
>/tmp/nix-build-h3f3l1kd48dxs6iizslwi4dzknwl8vca-eclipse-classic
-3.5M3.drv-0/plugins/org.eclipse.jdt.compiler.tool/customBuildCallbacks.xml.
>        [ant] Exiting 
>/tmp/nix-build-h3f3l1kd48dxs6iizslwi4dzknwl8vca-eclipse-classic
-3.5M3.drv-0/plugins/org.eclipse.jdt.compiler.tool/build.xml.
>  Setting ro project property: ant.file -> 
>/tmp/nix-build-h3f3l1kd48dxs6iizslwi4dzknwl8vca-eclipse-classic
-3.5M3.drv-0/features/org.eclipse.jdt/build.xml
>  Setting ro project property: installOs -> linux
>  Setting ro project property: ant.file.org.eclipse.sdk -> 
>/tmp/nix-build-h3f3l1kd48dxs6iizslwi4dzknwl8vca-eclipse-classic
-3.5M3.drv-0/features/org.eclipse.sdk/build.xml
>  Setting ro project property: installWs -> gtk
>  Setting ro project property: installArch -> x86_64
>  Setting ro project property: JavaSE-1.6 -> 
>  Setting ro project property: J2SE-1.5 -> 
>  Setting ro project property: ant.project.name -> org.eclipse.jdt
>  Setting ro project property: J2SE-1.4 -> 
>  [...]
>
>JSE-1.4 is set to an empty String in the last line here. 
>Either this or the <isset proprety=.. condition is wrong.
>Is there an easy way to got to know where this empty 
>assignment takes place?
>
>Sincerly
>  Marc Weber
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: user-unsubscribe@ant.apache.org
>For additional commands, e-mail: user-help@ant.apache.org
>
>

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


Mime
View raw message