On 08/25/2014 11:39 AM, Pierre Labastie wrote: > Le 25/08/2014 01:57, Armin K. a écrit : >> Hello, >> >> My first time building BLFS Java related packages, just for testing and >> stuff. >> >> I did however notice that, unlike with OpenJDK/IcedTea, there are no >> instructions by default to preserve environment variables for Apache-Ant >> (ANT_HOME and PATH) and JUnit (JAVA_CLASSPATH) in a system profile.d >> scripts. >> >> There is a note that it should be added in bashrc or profile or >> something like that, but it's kind of strange because with many packages >> we create /etc/profile.d scripts that set the correct variables. >> >> Is that intentional or what? >> >> > Actually, for JUnit, the CLASSPATH is automagically set by the instructions > in /etc/profile.d/openjdk.sh, as per the book instructions. So the > settings on > JUnit page are only needed for building openjdk. >
I have noticed that after I finished building openjdk. There are some other issues regarding that package, but it can wait. > For Apache-Ant, this is a different story. What I do, is to add: > > |# Set ANT_HOME directory > ANT_HOME=/opt/ant > > # Adjust PATH > pathappend $ANT_HOME/bin PATH| > > to the /etc/profile.d/openjdk.sh file. That could be included in the book. > > Another possibility would be to have those instructions in a separate > file /etc/profile.d/ant.sh or so, to be created after Apache-Ant > installation. > > What would you prefer? > Pierre > > > I, for one, have created the ant.sh file: # Begin /etc/profile.d/ant.sh ANT_HOME=/opt/ant pathappend $ANT_HOME/bin PATH export ANT_HOME # End /etc/profile.d/ant.sh -- Note: My last name is not Krejzi.
signature.asc
Description: OpenPGP digital signature
-- http://lists.linuxfromscratch.org/listinfo/blfs-dev FAQ: http://www.linuxfromscratch.org/blfs/faq.html Unsubscribe: See the above information page
