You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Marc Weber <ma...@gmx.de> on 2008/11/15 13:17:21 UTC

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


Re: Howto debug where properties are set?

Posted by Marc Weber <ma...@gmx.de>.
On Mon, Nov 17, 2008 at 08:46:01AM +0100, Jan.Materne@rzf.fin-nrw.de wrote:
> 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

Hi Jan, thanks for replying.

I've finally seen that it has been set in the .properties file.
There is also a way to check the length. Anyway something is broken in
the buildsystem for eclipse. So nobody seems to be using it.

Marc Weber

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


AW: Howto debug where properties are set?

Posted by Ja...@rzf.fin-nrw.de.
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