This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
ant -logger org.apache.tools.ant.listener.AnsiColorLogger |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
Requires Ant 1.8+ | |
Home page: http://ant.apache.org/antlibs/props | |
SVN URL: https://svn.apache.org/repos/asf/ant/antlibs/props/trunk | |
ViewVC: http://svn.apache.org/viewvc/ant/antlibs/props/trunk | |
--> | |
<taskdef resource="org/apache/ant/props/antlib.xml" | |
classpath="${lib.dir}/ant-props-1.0Alpha.jar" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- | |
@todo new attributes "include" and/or "require" which take csv file lists. useful for presetdefs | |
@todo new attribute "namespace" (useful?) | |
@todo use "return" instead of "echo", or allow both. maybe use attributes "returnProperty" and "outputProperty" instead of just "property" | |
@todo could (optionally) predefine some variables, such as $basedir | |
@todo could (optionally) use "echoProperties" to dump properties to a temp file and load them into a predefined $ant, $properties, or $p array | |
--> | |
<macrodef name="php" description="Executes PHP code"> | |
<attribute name="code" default="" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<property name="\n" value="${line.separator}" /> | |
<property name="/" value="${file.separator}" /> | |
<property name=":" value="${path.separator}" /> | |
<!-- tab char --> | |
<script language="javascript">project.setUserProperty("\\t", "\t");</script> | |
<!-- for surrounding command line options --> | |
<condition property="'" value=""" else="'"> | |
<os family="windows" /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<property environment="env" /> | |
<property name="env.PATH" value="${env.Path}" /><!-- because windows --> | |
<scriptdef name="which" language="javascript"> | |
<attribute name="command" /> | |
<attribute name="property" /> | |
<![CDATA[ | |
var cmd = attributes.get("command") || ""; | |
var prop = attributes.get("property") || ""; |
NewerOlder