leosutic 2004/05/05 21:01:52 Modified: attributes maven.xml Log: Added auto-creation of javadoc-1.4.jar. Revision Changes Path 1.13 +52 -0 jakarta-commons-sandbox/attributes/maven.xml Index: maven.xml =================================================================== RCS file: /home/cvs/jakarta-commons-sandbox/attributes/maven.xml,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- maven.xml 21 Mar 2004 00:20:57 -0000 1.12 +++ maven.xml 6 May 2004 04:01:52 -0000 1.13 @@ -25,6 +25,8 @@ <property name="pom.organization.identifier" value="ASF"/> <property name="pom.specificationVersion" value="1.0"/> + <property name="javadoc14.jar" value="${maven.repo.local}/javadoc/jars/javadoc-1.4.jar"/> + <goal name="attributes:help" description="Print some help."> <echo><![CDATA[ @@ -44,8 +46,57 @@ ]]></echo> </goal> + <goal name="attributes:install-javadoc-1.4"> + <available file="${javadoc14.jar}" property="javadoc14.jar.present"/> + <j:set var="jd14present" value="${javadoc14.jar.present}"/> + <j:if test="${!jd14present.equals ('true')}"> + + <echo><![CDATA[ +----------------------------------------------------------------------- +JAKARTA COMMONS ATTRIBUTES: Dependency Resolution +----------------------------------------------------------------------- + +You do not have Javadoc-1.4.jar in your local repository. Since this +jar can't be downloaded, it will be created from your tools.jar and put +in your local repository. Should the creation fail, please copy the +files + + com/sun/javadoc/*.class + com/sun/tools/doclets/Taglet.class + +from your tools.jar (which should be in $JAVA_HOME/lib/) into a jar file +named + + ${maven.repo.local}/javadoc/jars/javadoc-1.4.jar + +If you don't find the Taglet.class file in your tools.jar, this is +probably caused by you not having Javadoc 1.4 or later. In order for +the compilation to proceed anyway, you can do the following: + + 1. Go to java.sun.com + 2. Download JDK 1.4.2 (without NetBeans) + 3. Install it. + 4. Get the tools.jar from the installation. + 5. Get the files listed above and put them into a jar file + as described above. + +If that's too much, then you should perhaps look into the binary +distributions available at the project's homepage. + +Finally, please be aware that I *have* contacted Sun regarding putting +the javadoc API classes into a Maven repository... +]]></echo> + + <mkdir dir="${maven.repo.local}/javadoc/jars/"/> + <jar destfile="${maven.repo.local}/javadoc/jars/javadoc-1.4.jar"> + <zipfileset src="${java.home}/../lib/tools.jar" includes="com/sun/javadoc/**,com/sun/tools/doclets/Taglet.class"/> + </jar> + </j:if> + </goal> + <goal name="attributes:install" description="Build and install the Jakarta Commons Attributes jars." > + <attainGoal name="attributes:install-javadoc-1.4"/> <maven:reactor basedir="${basedir}" includes="api/project.xml,compiler/project.xml" @@ -56,6 +107,7 @@ <goal name="attributes:install-snapshot" description="Build and install the Jakarta Commons Attributes jars." > + <attainGoal name="attributes:install-javadoc-1.4"/> <maven:reactor basedir="${basedir}" includes="api/project.xml,compiler/project.xml"
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]