/[debian]/libjxp-java/branches/upstream/current/src/java/org/onemind/jxp/ant/jant-core.jxp
ViewVC logotype

Contents of /libjxp-java/branches/upstream/current/src/java/org/onemind/jxp/ant/jant-core.jxp

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1593 - (show annotations)
Sat Feb 28 22:58:14 2009 UTC (12 years, 5 months ago) by gregoa
File size: 4788 byte(s)
[svn-inject] Installing original source of libjxp-java
1 <%
2 import static org.onemind.jxp.ant.AntTaskPropertiesSetter;
3 import org.apache.tools.ant.taskdefs.*;
4 import org.apache.tools.ant.types.*;
5 import java.io.*;
6
7 function void _runAntTask(var t){
8 setTaskProperties(t, getJxpEnvironment());
9 t.execute();
10 }
11
12 function void ant(
13 String antFile: null,
14 File dir: null,
15 String target: null,
16 String output: null,
17 boolean inheritAll: true,
18 boolean inheritRefs: false,
19 var inheritAll: false,
20 var inheritRefs: false){
21 _runAntTask(new Ant());
22 }
23
24 function void antCall(
25 String target,
26 boolean inheritAll: true,
27 boolean inheritRefs: false){
28 _runAntTask(new Ant());
29 }
30
31 function void antStructure(){
32 throw UnsupportedOperationException("Not implemented");
33 }
34
35 function void apply(String common,
36 File dest: null,
37 boolean spawn: false,
38 File dir: null,
39 boolean relative: false,
40 String forwardSlash: false,
41 String os: null,
42 File output: null,
43 File error: null,
44 var logError: null,
45 boolean append: false,
46 String outputProperty: null,
47 String errorProperty: null,
48 File input: null,
49 String inputString: null,
50 String resultProperty: null,
51 long timeout: Long.MAX_VALUE,
52 boolean failOnError: false,
53 boolean failIfExecutionFails: false,
54 boolean skipEmptyFileSets: false,
55 boolean parallel: false,
56 String type: "file",
57 boolean newEnvironment: false,
58 boolean vmLauncher: true,
59 boolean resolveExecutable: false,
60 int maxParallel: 0,
61 boolean addSourceFile: true,
62 boolean verbose: false,
63 boolean ignoreMissing: true,
64 boolean force: false
65 ){
66 _runAntTask(new ExecOn());
67 }
68
69 function void Available(String property,
70 String value: "true",
71 String className: null,
72 File file: null,
73 String resource: null,
74 Path classpath: null,
75 Path filePath: filePath,
76 Reference classpathRef: null,
77 String type: null,
78 boolean ignoreSystemClasses: false
79 ){
80 _runAntTask(new Available());
81 }
82
83 function void Basename(File file, String property, String suffix: null){
84 _runAntTask(new Basename());
85 }
86
87 function void BuildNumber(File file){
88 _runAntTask(new BuildNumber());
89 }
90
91 function void bunzip2(File src, File dest: null){
92 _runAntTask(new BUnzip2());
93 }
94
95 function void bzip2(File src, File destFile: null, File zipFile: null){
96 _runAntTask(new BZip2());
97 }
98
99 function void checksum(File file,
100 File toDir: null,
101 String algorithm: null,
102 String provider: null,
103 String fileext: null,
104 String property: null,
105 String totalProperty: null,
106 boolean forceOverwrite: false,
107 boolean verifyProperty: false,
108 int readBufferSize: 8192){
109 _runAntTask(new Checksum());
110 }
111
112
113 function void chmod(File file:null,
114 File dir:null,
115 String perm: null,
116 String includes: null,
117 String excludes: null,
118 String defaultExcludes: null,
119 boolean parallel: true,
120 String type: file,
121 int maxParallel: 0,
122 boolean verbose: false){
123 _runAntTask(new Chmod());
124 }
125
126 function void concat(File destFile: null,
127 boolean append: false,
128 boolean force: true,
129 String encoding: null,
130 String outputEncoding: null,
131 boolean fixLastline: false,
132 String crlf: null){
133 //TODO: convert crlf to type
134 _runAntTask(new Concat());
135 }
136
137 function void copy(
138 File file,
139 File tofile,
140 boolean overwrite: false,
141 boolean preserveLastModified: false,
142 boolean flatten: false,
143 boolean filtering: false,
144 var includeEmptyDir: true,
145 var failonerror:true,
146 var verbose: false,
147 var encoding: null
148 ){
149 _runAntTask(new Copy());
150 }
151
152 function void defaultExcludes(
153 boolean echo: false,
154 boolean Default: false,
155 String add: null,
156 String remove: null){
157 _runAntTask(new DefaultExcludes());
158 }
159
160 function void delete(File file: null,
161 File dir: null,
162 boolean verbose: false,
163 boolean quite: false,
164 boolean failOnError: true,
165 boolean includeEmptyDirs: false,
166 String includes: null,
167 String includesFile: null,
168 String excludes: null,
169 String excludesFile: null,
170 boolean defaultExcludes: true,
171 boolean deleteOnExit: false){
172 _runAntTask(new Delete());
173 }
174
175 function void dirname(File file, String property){
176 _runAntTask(new Dirname());
177 }
178
179 function void ear(File destfile,
180 File appXml: null,
181 File baseDir: null,
182 boolean compress: false,
183 boolean keepCompression: false,
184 String encoding: null,
185 boolean filesOnly: false,
186 String includes: null,
187 String includesFile: null,
188 String excludes: null,
189 String excludesFile: null,
190 boolean defaultExcludes: true,
191 File manifest: null,
192 boolean update: false,
193 String duplicate: false,
194 boolean roundup: true){
195 _runAntTask(new Ear());
196 }
197 %>

  ViewVC Help
Powered by ViewVC 1.1.26