[java-sig-commits] [Bug 753201] when javac is java-1.5.0-gcj ant seems to not be able to access environmental variables

bugzilla at redhat.com bugzilla at redhat.com
Wed Feb 1 13:27:53 UTC 2012


Please do not reply directly to this email. All additional
comments should be made in the comments box of this bug.


https://bugzilla.redhat.com/show_bug.cgi?id=753201

Jaromír Cápík <jcapik at redhat.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|NEW                         |ASSIGNED

--- Comment #5 from Jaromír Cápík <jcapik at redhat.com> 2012-02-01 08:27:51 EST ---
Hello Caolan.

I can't reproduce that behavior on F16 and F17.

I get the following in case of both mentioned alternatives when executing the
ant build from the regular user account.

     [echo] property is ${env.USERNAME}



And surprisingly when I do 'su' WITHOUT DASH from my regular user account, I
get the following for openjdk 1.6.0 ONLY:

     [echo] property is jcapik

whilst gcj-1.5.0 returns:

     [echo] property is ${env.USERNAME}




When I do 'su -', then I get the following in case of both alternatives:

     [echo] property is ${env.USERNAME}



So ... as you see, I get the username filled in correctly ONLY when switched to
openjdk 1.6.0 and building with ant executed from 'su'. That means the current
behavior might be incorrect. I'll try to do a deeper analysis.

-- 
Configure bugmail: https://bugzilla.redhat.com/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the java-sig-commits mailing list