You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jmeter.apache.org by pm...@apache.org on 2018/01/07 15:40:08 UTC
svn commit: r1820472 - /jmeter/trunk/build.xml
Author: pmouawad
Date: Sun Jan 7 15:40:08 2018
New Revision: 1820472
URL: http://svn.apache.org/viewvc?rev=1820472&view=rev
Log:
Bug 61973 - Create and Deploy javadoc artifacts to Maven central
Add deployment
Bugzilla Id: 61973
Modified:
jmeter/trunk/build.xml
Modified: jmeter/trunk/build.xml
URL: http://svn.apache.org/viewvc/jmeter/trunk/build.xml?rev=1820472&r1=1820471&r2=1820472&view=diff
==============================================================================
--- jmeter/trunk/build.xml (original)
+++ jmeter/trunk/build.xml Sun Jan 7 15:40:08 2018
@@ -2095,12 +2095,18 @@ run JMeter unless all the JMeter jars ar
<attribute name="repositoryId" default="${@{type}.repositoryId}"/>
<sequential>
<local name="artifact_has_source"/>
+ <local name="artifact_has_javadoc"/>
<condition property="artifact_has_source" value="" else="XX">
<and>
<available file="${maven.dir}/@{stem}-sources.jar"/>
</and>
</condition>
- <echo>Artifact @{stem} => artifact_has_source='${artifact_has_source}'</echo>
+ <condition property="artifact_has_javadoc" value="" else="XX">
+ <and>
+ <available file="${maven.dir}/@{stem}-javadoc.jar"/>
+ </and>
+ </condition>
+ <echo>Artifact @{stem} => artifact_has_source='${artifact_has_source}', artifact_has_javadoc='${artifact_has_javadoc}'</echo>
<java classname="org.codehaus.classworlds.Launcher"
fork="true"
dir="${basedir}"
@@ -2126,6 +2132,8 @@ run JMeter unless all the JMeter jars ar
<arg value="-DpomFile=${maven.dir}/@{stem}.pom"/>
<!-- if artifact has no sources artifact_has_source=XX so -D will be ignored -->
<arg value="-D${artifact_has_source}sources=${maven.dir}/@{stem}-sources.jar"/>
+ <!-- if artifact has no javadoc artifact_has_javadoc=XX so -D will be ignored -->
+ <arg value="-D${artifact_has_javadoc}javadoc=${maven.dir}/@{stem}-javadoc.jar"/>
<arg value="-Dpackaging=@{packaging}"/>
<arg value="-Dfile=${maven.dir}/@{stem}.${packaging}"/>
<!--