Skip to content

Commit

Permalink
#75 one line for xcop
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Sep 27, 2017
1 parent 2e5751e commit 03fa2db
Showing 1 changed file with 11 additions and 9 deletions.
20 changes: 11 additions & 9 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -265,17 +265,19 @@ OF THE POSSIBILITY OF SUCH DAMAGE.
<if>
<equals arg1="${xcop.present}" arg2="true"/>
<then>
<apply executable="xcop" failonerror="true">
<fileset dir="." id="files">
<include name="**/*.xml"/>
<include name="**/*.xsl"/>
<include name="**/*.xsd"/>
<exclude name="target/**/*"/>
<exclude name=".idea/**/*"/>
</fileset>
<pathconvert refid="files" property="converted" pathsep=" "/>
<exec executable="xcop" failonerror="true">
<arg value="--license"/>
<arg value="LICENSE.txt"/>
<fileset dir=".">
<include name="**/*.xml"/>
<include name="**/*.xsl"/>
<include name="**/*.xsd"/>
<exclude name="target/**/*"/>
<exclude name=".idea/**/*"/>
</fileset>
</apply>
<arg line="${converted}"/>
</exec>
</then>
<else>
<echo message="XCOP is not available in PATH"/>
Expand Down

0 comments on commit 03fa2db

Please sign in to comment.