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