You are viewing a plain text version of this content. The canonical link for it is here.
Posted to alexandria-dev@jakarta.apache.org by sa...@apache.org on 2002/02/02 02:38:08 UTC
cvs commit: jakarta-alexandria/proposal/vindico/src/java/org/apache/alexandria/om Script.java
sanders 02/02/01 17:38:08
Modified: proposal/vindico/src/java/org/apache/alexandria/om
Script.java
Log:
Script now works in Ant. Only on Win32 though.
Revision Changes Path
1.5 +13 -6 jakarta-alexandria/proposal/vindico/src/java/org/apache/alexandria/om/Script.java
Index: Script.java
===================================================================
RCS file: /home/cvs/jakarta-alexandria/proposal/vindico/src/java/org/apache/alexandria/om/Script.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- Script.java 1 Feb 2002 17:24:41 -0000 1.4
+++ Script.java 2 Feb 2002 01:38:08 -0000 1.5
@@ -1,7 +1,7 @@
/*
- * $Header: /home/cvs/jakarta-alexandria/proposal/vindico/src/java/org/apache/alexandria/om/Script.java,v 1.4 2002/02/01 17:24:41 sanders Exp $
- * $Revision: 1.4 $
- * $Date: 2002/02/01 17:24:41 $
+ * $Header: /home/cvs/jakarta-alexandria/proposal/vindico/src/java/org/apache/alexandria/om/Script.java,v 1.5 2002/02/02 01:38:08 sanders Exp $
+ * $Revision: 1.5 $
+ * $Date: 2002/02/02 01:38:08 $
*
* ====================================================================
*
@@ -68,7 +68,7 @@
* Script provides ...
*
* @author <a href="mailto:sanders@apache.org">Scott Sanders</a>
- * @version $Revision: 1.4 $ $Date: 2002/02/01 17:24:41 $
+ * @version $Revision: 1.5 $ $Date: 2002/02/02 01:38:08 $
*/
public class Script implements IScript {
@@ -88,8 +88,15 @@
}
public void build(XMLHelper helper) {
- helper.attribute("executable", name + ".bat");
+
+ //FIXME This will only work on Windows, needs a patch to work on Linux
+ // or any other shell based system.
+ helper.attribute("executable", "cmd.exe");
helper.attribute("dir", "${build.home}");
- helper.element("exec", true);
+ helper.element("exec");
+
+ helper.attribute("line", "/c" + name + ".bat");
+ helper.element("arg", true);
+ helper.popElement();
}
}
--
To unsubscribe, e-mail: <ma...@jakarta.apache.org>
For additional commands, e-mail: <ma...@jakarta.apache.org>