1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/build.xml Sat Dec 16 20:13:13 2023 +0100
1.3 @@ -0,0 +1,65 @@
1.4 +<?xml version="1.0" encoding="UTF-8"?>
1.5 +<!--
1.6 +Rozšířené atributy – program na správu rozšířených atributů souborů
1.7 +Copyright © 2023 František Kučera (frantovo.cz)
1.8 +
1.9 +This program is free software: you can redistribute it and/or modify
1.10 +it under the terms of the GNU General Public License as published by
1.11 +the Free Software Foundation, version 3 of the License.
1.12 +
1.13 +This program is distributed in the hope that it will be useful,
1.14 +but WITHOUT ANY WARRANTY; without even the implied warranty of
1.15 +MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
1.16 +GNU General Public License for more details.
1.17 +
1.18 +You should have received a copy of the GNU General Public License
1.19 +along with this program. If not, see <http://www.gnu.org/licenses/>.
1.20 +-->
1.21 +<project name="rozšířené-atributy" basedir="." default="jar">
1.22 +
1.23 + <property name="VERSION" value="0.1-SNAPSHOT"/>
1.24 + <property name="JAR" value="target/rozsirene-atributy-${VERSION}.jar"/>
1.25 + <property name="MAIN" value="cz.frantovo.rozsireneatributy.Startér"/>
1.26 + <property
1.27 + name="LAF"
1.28 + value="-Dswing.defaultlaf=javax.swing.plaf.nimbus.NimbusLookAndFeel"
1.29 + />
1.30 +
1.31 + <target name="clean">
1.32 + <delete dir="target"/>
1.33 + </target>
1.34 +
1.35 + <target name="target/classes">
1.36 + <mkdir dir="target/classes"/>
1.37 + <touch>
1.38 + <fileset dir="target"/>
1.39 + </touch>
1.40 + <javac
1.41 + srcdir="src/main/java"
1.42 + destdir="target/classes"
1.43 + includeAntRuntime="no">
1.44 + </javac>
1.45 + <copy todir="target/classes">
1.46 + <fileset dir="src/main/resources" includes="**/*.properties"/>
1.47 + </copy>
1.48 + </target>
1.49 +
1.50 + <target name="jar" depends="target/classes">
1.51 + <jar destfile="${JAR}" basedir="target/classes">
1.52 + <manifest>
1.53 + <attribute name="Main-Class" value="${MAIN}"/>
1.54 + </manifest>
1.55 + </jar>
1.56 + </target>
1.57 +
1.58 + <target name="run" depends="jar">
1.59 + <exec executable="java">
1.60 + <arg value="${LAF}"/>
1.61 + <arg value="-jar"/>
1.62 + <arg value="${JAR}"/>
1.63 + <arg value="--soubor"/>
1.64 + <arg value="${JAR}"/>
1.65 + </exec>
1.66 + </target>
1.67 +
1.68 +</project>