Skip to content

Commit c148c7b

Browse files
authored
Merge pull request #90 from w3c/sideshowbarker/jar-without-dependencies
Add target to build jar with no dependency jars
2 parents df8f1d4 + 15bedc8 commit c148c7b

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

build.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -128,6 +128,16 @@
128128
</jar>
129129
</target>
130130

131+
<target name="jar-without-dependencies" depends="build" description="Creates the lib archive without dependency jars">
132+
<delete file="${jar.file}"/>
133+
<jar jarfile="${jar.file}" basedir="build" excludes="org/**/*.java">
134+
<include name="org/**"/>
135+
<manifest>
136+
<attribute name="Main-Class" value="org.w3c.css.css.CssValidator"/>
137+
</manifest>
138+
</jar>
139+
</target>
140+
131141
<target name="war" depends="build" description="Creates the webapp module">
132142
<delete file="${war.file}"/>
133143
<war warfile="${war.file}" webxml="web.xml" basedir="." includes="*html*,favicon.ico,images/**,style/**,scripts/**,tabtastic/**" excludes="html,css-validator.*">

0 commit comments

Comments
 (0)