SONAR-1859 Add the boolean property 'sonar.copyPluginProperty'

This commit is contained in:
simonbrandhof 2010-10-14 15:13:23 +00:00
parent 0a09bb843c
commit 914c7e6384
2 changed files with 24 additions and 1 deletions

View File

@ -235,7 +235,12 @@
<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>

View File

@ -99,6 +99,15 @@
<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>
@ -261,6 +270,15 @@
<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>