<available property="has.extensions" file="${extensionsDir}"/>
<antcall target="copy-extensions"/>
- <available file="${pluginArtifact}" property="has.plugin.artifact"/>
+ <condition property="has.plugin.artifact">
+ <and>
+ <available file="${pluginArtifact}" />
+ <istrue value="${copyPluginArtifact}"/>
+ </and>
+ </condition>
<antcall target="copy-plugin-artifact"/>
</target>
<type>java.lang.File</type>
<defaultValue>${project.build.directory}/${project.build.finalName}.jar</defaultValue>
</parameter>
+ <parameter>
+ <name>copyPluginArtifact</name>
+ <description>Should copy plugin artifact in Sonar plugins ?</description>
+ <property>copyPluginArtifact</property>
+ <expression>${sonar.copyPluginArtifact}</expression>
+ <required>false</required>
+ <type>java.lang.Boolean</type>
+ <defaultValue>true</defaultValue>
+ </parameter>
<parameter>
<name>extensionsDir</name>
<description>Directory from where extensions should be copied.</description>
<type>java.lang.File</type>
<defaultValue>${project.build.directory}/${project.build.finalName}.jar</defaultValue>
</parameter>
+ <parameter>
+ <name>copyPluginArtifact</name>
+ <description>Should copy plugin artifact in Sonar plugins ?</description>
+ <property>copyPluginArtifact</property>
+ <expression>${sonar.copyPluginArtifact}</expression>
+ <required>false</required>
+ <type>java.lang.Boolean</type>
+ <defaultValue>true</defaultValue>
+ </parameter>
<parameter>
<name>extensionsDir</name>
<description>Directory from where extensions should be copied.</description>