You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ant.apache.org by Joe Mahlong <jo...@absa.co.za> on 2004/06/01 14:55:04 UTC

Problem with Ant 1.6.1

Hi,

I've upgraded from ant 1.4.1 to 1.6.1, now I get an error when building my EnterpriseArchives. The condition task cannot override a property anymore. Does this mean that the condition task for ant 1.6.1 has changed and is there any reason for this change and also an alternative to what the condition task used to do.

Regards
Joe
______________________________________________

E-mail Disclaimer and Company Information

http://www.absa.co.za/ABSA/EMail_Disclaimer

Re: Problem with Ant 1.6.1

Posted by Ivan Ivanov <ra...@yahoo.com>.
The main reason for fixing the overriding a property
with <condition> breaks the properties immutability
and I think that ant verssions less than 1.6 printed
warnings if one overrides a property with <condition>.

Regards Ivan

P.S. I have met several warnings to not rely on this
immutability loophole since it would be fixed one day
--- Joe Mahlong <jo...@absa.co.za> wrote:
> Hi,
> 
> I've upgraded from ant 1.4.1 to 1.6.1, now I get an
> error when building my EnterpriseArchives. The
> condition task cannot override a property anymore.
> Does this mean that the condition task for ant 1.6.1
> has changed and is there any reason for this change
> and also an alternative to what the condition task
> used to do.
> 
> Regards
> Joe
> ______________________________________________
> 
> E-mail Disclaimer and Company Information
> 
> http://www.absa.co.za/ABSA/EMail_Disclaimer
> 



	
		
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

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


manifest attribute in ANT

Posted by Sam Cheung <sy...@yahoo.com>.
	<manifest>
			   <attribute name="MIDlet-Permissions"
value="javax.microedition.io.PushRegistry,javax.microedition.io.Connector.http,javax.microedition.io.Connector.socket"/>

			</manifest>

But in the actual manifest file, the Permission file
has multiple lines. Do you have any idea why this is
happening? And how to work around this?

(2 lines:)
MIDlet-Permissions:
javax.microedition.io.PushRegistry,javax.microedit


ion.io.Connector.http,javax.microedition.io.Connector.socket


Thank you.

 

MIDlet-Permissions:
javax.microedition.io.PushRegistry,javax.microedit

 ion.io.Connector.http,javax.microedition.io.Connector.socket


	
		
__________________________________
Do you Yahoo!?
Friends.  Fun.  Try the all-new Yahoo! Messenger.
http://messenger.yahoo.com/ 

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


Re: Problem with Ant 1.6.1

Posted by Jacob Kjome <ho...@visi.com>.
See the release notes for Ant-1.5.xx.  A major change happened between 
1.4.x and 1.5.x.  Properties became immutable.  You'll have to wait to set 
a default value for a property until *after* a condition has been run 
though.  If you set a property, nothing else can reset that property 
(unless you use some ant-contrib tasks or use a scripting language).  This 
is core to understanding how to write modern Ant build files.  Make sure to 
read the docs.


Jake

At 02:55 PM 6/1/2004 +0200, you wrote:
>Hi,
>
>I've upgraded from ant 1.4.1 to 1.6.1, now I get an error when building my 
>EnterpriseArchives. The condition task cannot override a property anymore. 
>Does this mean that the condition task for ant 1.6.1 has changed and is 
>there any reason for this change and also an alternative to what the 
>condition task used to do.
>
>Regards
>Joe
>______________________________________________
>
>E-mail Disclaimer and Company Information
>
>http://www.absa.co.za/ABSA/EMail_Disclaimer


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