ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jan.Mate...@rzf.fin-nrw.de
Subject RE: Ant Pretty Build... (The Return)
Date Mon, 11 Aug 2003 09:17:49 GMT
> I'll explicitly describe how to use this tool:

Screenshots would be good so the user knows what he should get :-)



> 2- Environment variables.
> Environment variables may be set or not in the xsl stylesheet 
> depending on your 
> system.
> So, if you already have configured your environment to run Ant,
> you only need to clear tag content of xsl:variable like this:
> 
>   <!-- Environment Variables -->
>   <xsl:variable name="JAVA_HOME"></xsl:variable>
>   <xsl:variable name="ANT_HOME"></xsl:variable>
>   <xsl:variable name="PATH"></xsl:variable>
> 
> If not, you have to set variables to match your local paths.
> (I can't imagine you don't know what are JAVA_HOME, ANT_HOME 
> and PATH!)
> In the tag text, you can use '/' or '\\' as separator this way:
> 
>   <!-- Environment Variables -->
>   <xsl:variable name="JAVA_HOME"></xsl:variable>
>   <xsl:variable name="ANT_HOME">C:/Program Files/Apache 
> Group/Ant</xsl:variable>
>   <xsl:variable name="PATH">%PATH%;C:/Program Files/Apache 
> Group/Ant/bin</xsl:variable>
> 
> or 
> 
>   <!-- Environment Variables -->
>   <xsl:variable name="JAVA_HOME"></xsl:variable>
>   <xsl:variable name="ANT_HOME">C:\\Program Files\\Apache 
> Group\\Ant</xsl:variable>
>   <xsl:variable name="PATH">%PATH%;C:/Program Files/Apache 
> Group/Ant/bin</xsl:variable>


fine


> If someone needs to pass these as params from outside the 
> xsl, <xsl:param>s may 
> be used instead of <xsl:variable>s.


You should use the <xsl:param> instead of <xsl:variable>. <param>s can
define
the values like <variable>s but have the ability that the can be set from
outside.




Jan

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message