build.xml
author František Kučera <franta-hg@frantovo.cz>
Tue, 19 Dec 2023 00:47:41 +0100
branchv_0
changeset 41 64e564c2f069
parent 39 ec0e970e0830
child 44 c43c96b0ab1b
permissions -rw-r--r--
buňky tabulky editovatelné po stisku mezerníku
     1 <?xml version="1.0" encoding="UTF-8"?>
     2 <!--
     3 Rozšířené atributy – program na správu rozšířených atributů souborů
     4 Copyright © 2023 František Kučera (frantovo.cz)
     5 
     6 This program is free software: you can redistribute it and/or modify
     7 it under the terms of the GNU General Public License as published by
     8 the Free Software Foundation, version 3 of the License.
     9 
    10 This program is distributed in the hope that it will be useful,
    11 but WITHOUT ANY WARRANTY; without even the implied warranty of
    12 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    13 GNU General Public License for more details.
    14 
    15 You should have received a copy of the GNU General Public License
    16 along with this program.  If not, see <http://www.gnu.org/licenses/>.
    17 -->
    18 <project name="rozšířené-atributy" basedir="." default="jar">
    19 
    20 	<property name="VERSION" value="0.1-SNAPSHOT"/>
    21 	<property name="JAR" value="target/rozsirene-atributy-${VERSION}.jar"/>
    22 	<property name="MAIN" value="cz.frantovo.rozsireneatributy.Startér"/>
    23 	<property
    24 		name="LAF"
    25 		value="-Dswing.defaultlaf=javax.swing.plaf.nimbus.NimbusLookAndFeel"
    26 	/>
    27 	
    28 	<target name="clean">
    29 		<delete dir="target"/>
    30 	</target>
    31 	
    32 	<target name="target/classes">
    33 		<mkdir dir="target/classes"/>
    34 		<touch>
    35 			<fileset dir="target"/>
    36 		</touch>
    37 		<javac
    38 			srcdir="src/main/java"
    39 			destdir="target/classes"
    40 			includeAntRuntime="no">
    41 		</javac>
    42 		<copy todir="target/classes">
    43 			<fileset dir="src/main/resources" includes="**/*.properties"/>
    44 		</copy>
    45 	</target>
    46 	
    47 	<target name="jar" depends="target/classes">
    48 		<jar destfile="${JAR}" basedir="target/classes">
    49 			<manifest>
    50 				<attribute name="Main-Class" value="${MAIN}"/>
    51 			</manifest>
    52 		</jar>
    53 	</target>
    54 	
    55 	<target name="run" depends="jar">
    56 		<exec executable="java">
    57 			<arg value="${LAF}"/>
    58 			<arg value="-jar"/>
    59 			<arg value="${JAR}"/>
    60 			<arg value="--soubor"/>
    61 			<arg value="${JAR}"/>
    62 		</exec>
    63 	</target>
    64 
    65 </project>