Mercurial > cgi-bin > hgweb.cgi > JpegWasher
comparison build.xml @ 37:4fdd2f7e2cec
Prune out more deadwood.
author | David Barts <n5jrn@me.com> |
---|---|
date | Fri, 01 May 2020 07:49:16 -0700 |
parents | aa9ab6cbaa26 |
children | 89d7f4d91f67 |
comparison
equal
deleted
inserted
replaced
36:aa9ab6cbaa26 | 37:4fdd2f7e2cec |
---|---|
1 <?xml version="1.0" encoding="UTF-8"?> | 1 <?xml version="1.0" encoding="UTF-8"?> |
2 <project name="JpegWasher" default="help" basedir="." | 2 <project name="JpegWasher" default="help" basedir="." |
3 xmlns:contrib="antlib:net.sf.antcontrib" | 3 xmlns:contrib="antlib:net.sf.antcontrib" |
4 xmlns:jarbundler="antlib:com.ultramixer.jarbundler" | 4 xmlns:jarbundler="antlib:com.ultramixer.jarbundler" |
5 xmlns:launch4j="antlib:net.sf.launch4j.ant" | 5 xmlns:launch4j="antlib:net.sf.launch4j.ant"> |
6 xmlns:mod="antlib:de.masters_of_disaster.ant.tasks"> | |
7 <!-- import all environment variables as env.* --> | 6 <!-- import all environment variables as env.* --> |
8 <property environment="env"/> | 7 <property environment="env"/> |
9 | 8 |
10 <!-- ensure required environment variables are set --> | 9 <!-- ensure required environment variables are set --> |
11 <macrodef name="env-require"> | 10 <macrodef name="env-require"> |
41 function du(fp) { | 40 function du(fp) { |
42 if (fp.isDirectory()) { | 41 if (fp.isDirectory()) { |
43 var files = fp.listFiles(); | 42 var files = fp.listFiles(); |
44 if (!files) return 0; | 43 if (!files) return 0; |
45 var total = 0; | 44 var total = 0; |
46 for(var i=0; i<files.length; i++) | 45 for (var i=0; i<files.length; i++) |
47 total += du(files[i]); | 46 total += du(files[i]); |
48 return total; | 47 return total; |
49 } else { | 48 } else { |
50 return fp.length(); | 49 return fp.length(); |
51 } | 50 } |
97 <taskdef name="create" | 96 <taskdef name="create" |
98 classname="net.sf.launch4j.ant.Launch4jTask" | 97 classname="net.sf.launch4j.ant.Launch4jTask" |
99 uri="antlib:net.sf.launch4j.ant"> | 98 uri="antlib:net.sf.launch4j.ant"> |
100 <classpath> | 99 <classpath> |
101 <fileset dir="${lib.home}/launch4j" includes="*.jar"/> | 100 <fileset dir="${lib.home}/launch4j" includes="*.jar"/> |
102 </classpath> | |
103 </taskdef> | |
104 </contrib:then> | |
105 </contrib:if> | |
106 | |
107 <!-- load mod (Gnome app bundler) tasks --> | |
108 <contrib:if> | |
109 <os family="unix"/> | |
110 <contrib:then> | |
111 <taskdef name="calculatesize" | |
112 classname="de.masters_of_disaster.ant.tasks.calculatesize.CalculateSize" | |
113 uri="antlib:de.masters_of_disaster.ant.tasks"> | |
114 <classpath> | |
115 <fileset dir="${lib.home}/mod" includes="*.jar"/> | |
116 </classpath> | |
117 </taskdef> | |
118 <taskdef name="deb" | |
119 classname="de.masters_of_disaster.ant.tasks.deb.Deb" | |
120 uri="antlib:de.masters_of_disaster.ant.tasks"> | |
121 <classpath> | |
122 <fileset dir="${lib.home}/mod" includes="*.jar"/> | |
123 </classpath> | 101 </classpath> |
124 </taskdef> | 102 </taskdef> |
125 </contrib:then> | 103 </contrib:then> |
126 </contrib:if> | 104 </contrib:if> |
127 | 105 |