Author: mturk Date: Wed Apr 15 07:19:37 2009 New Revision: 765068 URL: http://svn.apache.org/viewvc?rev=765068&view=rev Log: Add test manifest Attributes generation for getting the native library names
Modified: commons/sandbox/runtime/trunk/build.xml Modified: commons/sandbox/runtime/trunk/build.xml URL: http://svn.apache.org/viewvc/commons/sandbox/runtime/trunk/build.xml?rev=765068&r1=765067&r2=765068&view=diff ============================================================================== --- commons/sandbox/runtime/trunk/build.xml (original) +++ commons/sandbox/runtime/trunk/build.xml Wed Apr 15 07:19:37 2009 @@ -40,7 +40,9 @@ <property name="commons-logging.home" value="./lib"/> <property name="commons-logging.jar" value="${commons-logging.home}/commons-logging-1.1.1.jar"/> <property name="runtime.natives.path" value="${basedir}/src/main/native"/> + <property name="runtime.libname" value="libacr"/> <property name="runtime.library.path" value="${runtime.natives.path}/.libs"/> + <property name="runtime.attributes.base" value="org/apache/commons/runtime"/> <property name="compile.source" value="5"/> <property name="compile.target" value="5"/> @@ -225,7 +227,7 @@ basedir="${build.dir}/bin/java" excludes="**/*.java"> <manifest> - <section name="org/apache/commons/runtime/"> + <section name="${runtime.attributes.base}/"> <attribute name="Specification-Title" value="Apache Commons Runtime library"/> <attribute name="Specification-Version" value="${version}"/> <attribute name="Specification-Vendor" value="Apache Software Foundation"/> @@ -234,6 +236,16 @@ <attribute name="Implementation-Vendor-Id" value="org.apache"/> <attribute name="Implementation-Version" value="${version} (build ${DSTAMP} ${TSTAMP})"/> </section> + <!-- Native libraries subsections + TODO: Figure out some smarter way to generate them. + Probably via some embedded Ant extension. + --> + <section name="${runtime.attributes.base}/.libs/linux/ia32"> + <attribute name="Library" value="${runtime.libname}.so"/> + </section> + <section name="${runtime.attributes.base}/.libs/linux/x86_64"> + <attribute name="Library" value="${runtime.libname}.so"/> + </section> </manifest> <!-- Include native libraries. (Naming will change) <metainf dir="${runtime.natives.path}/">