ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: using environment variables on Solaris
Date Thu, 16 Aug 2001 08:35:28 GMT
<P>Thanks!</P><P>It works perfectly now.</P><P>//Anna</P><P>&nbsp;<BR><BR><FONT
SIZE=2><B>&quot;Conor MacNeill&quot; &lt;;</B></FONT><BR><FONT
SIZE=2>2001-08-15 00:14 ZE10</FONT><BR><FONT SIZE=2>Please respond to
ant-user</FONT><BR><BR> <FONT SIZE=2>To:</FONT> <FONT SIZE=2>&lt;;</FONT><BR>
<FONT SIZE=2>cc:</FONT> <BR> <FONT SIZE=2>bcc:</FONT> <BR>
<FONT SIZE=2>Subject:</FONT> <FONT SIZE=2>Re: using environment variables
on Solaris</FONT><BR> <BR><BR></P><P><FONT FACE="Monospace,Courier">This
has been fixed in CVS. Try Ant 1.4 Beta 1.<BR></FONT><BR><FONT FACE="Monospace,Courier">Conor<BR></FONT><BR><FONT
FACE="Monospace,Courier">----- Original Message -----<BR>From: &quot;Anna Englund&quot;
&lt;;<BR>To: &lt;;<BR>Sent:
Wednesday, August 15, 2001 12:02 AM<BR>Subject: using environment variables on Solaris<BR></FONT><BR><BR><FONT
FACE="Monospace,Courier">&gt; Hi,<BR>&gt;<BR>&gt; I'm trying to
reach environment variables in my ant script for Solaris.<BR>&gt;<BR>&gt;
The problem I'm having is that I get an StringIndexOutOfBoundsException<BR>when ant
loads the environment variables. When I run the same script on<BR>Win2K the environment
variables are loaded just fine.<BR>&gt;<BR>&gt; Any ideas?<BR>&gt;
Would be very thankful for any help!<BR>&gt; //Anna<BR>&gt;<BR>&gt;
Basics: ant 1.3, ant-optional: 1.4 alpha, jdk 1.3.1<BR>&gt;<BR>&gt; Script:<BR>&gt;
&nbsp; &lt;property environment=&quot;env&quot;/&gt;<BR>&gt;
&nbsp; &lt;echo message=&quot;HOME=${env.HOME}&quot;/&gt;<BR>&gt;<BR>&gt;
Output (in debug mode):<BR>&gt; ...<BR>&gt; Build sequence for target
`init' is [init]<BR>&gt; Complete build sequence is [init, jsp, web-inf, javadoc,
clean, compile,<BR>buildejb, all]<BR>&gt;<BR>&gt; init:<BR>&gt;
&nbsp;[property] Loading Environment env.<BR>&gt;<BR>&gt; BUILD FAILED<BR>&gt;<BR>&gt;
/usr/local/wls/scripts/build.xml:30: /usr/local/wls/scripts/build.xml:30:<BR>java.lang.StringIndexOutOfBoundsException:
String index out of range: -1<BR>&gt; --- Nested Exception ---<BR>&gt;
/usr/local/wls/scripts/build.xml:30:<BR>java.lang.StringIndexOutOfBoundsException: String
index out of range: -1<BR>&gt; --- Nested Exception ---<BR>&gt; java.lang.StringIndexOutOfBoundsException:
String index out of range: -1<BR>&gt; &nbsp; &nbsp; &nbsp; &nbsp;
at java.lang.String.substring(<BR>&gt; &nbsp; &nbsp; &nbsp;
&nbsp; at<BR><BR>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR><BR>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR>&gt;
&nbsp; &nbsp; &nbsp; &nbsp; at<BR>&gt;<BR>&gt;<BR>&gt;</FONT><BR></P>
View raw message