gitweb on Svarog
projekti pod git sistemom za održavanje verzija -- projects under
the git version control system
1 package com
.quemaster
.ant
.m2
;
3 import org
.apache
.tools
.ant
.BuildException
;
4 import org
.apache
.tools
.ant
.Task
;
8 public class m2compile
extends Task
{
9 private String module
="program";
10 private File dir
=null;
13 // needs to recognize whether it's linux or not
15 // needs to check wheter the compilation is needed
16 // based on the timestamps of the exe and mod
18 // The method executing the task
19 public void execute() throws BuildException
{
22 ProcessBuilder pb
= new ProcessBuilder(
23 "wine", "xc", "=make", "=all", module
);
27 Process p
= pb
.start();
31 }catch (Exception ex
) {
32 throw new BuildException(ex
);
35 throw new BuildException("compilation ended with code "+exit
);
38 public void setModule(String msg
) {
42 public void setDir(File msg
) {
46 public static void main(String
[] args
){
47 m2compile m
= new m2compile();
Svarog.pmf.uns.ac.rs/gitweb
maintanance
Doni Pracner