Browse Source

some entity escaping

Obtained from: Larry Shatzer


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@278015 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 20 years ago
parent
commit
8facf5e78b
9 changed files with 16 additions and 16 deletions
  1. +1
    -1
      docs/ant_in_anger.html
  2. +2
    -2
      docs/manual/CoreTasks/clone.html
  3. +1
    -1
      docs/manual/developlist.html
  4. +5
    -5
      docs/manual/tutorial-tasks-filesets-properties.html
  5. +1
    -1
      proposal/embed/src/java/org/apache/tools/ant/ProjectComponentFactory.java
  6. +1
    -1
      proposal/embed/src/java/org/apache/tools/ant/ProjectComponentHelper.java
  7. +1
    -1
      proposal/embed/src/java/org/apache/tools/ant/PropertyHelper.java
  8. +1
    -1
      proposal/embed/src/java/org/apache/tools/ant/helper/ProjectHelperImpl2.java
  9. +3
    -3
      proposal/sandbox/svn/docs/tagdiff.html

+ 1
- 1
docs/ant_in_anger.html View File

@@ -878,7 +878,7 @@ should contain a number of top level targets
<li>fetch - get the latest source from the cvs tree
<li>docs/javadocs - do the documentation
<li>all - clean, fetch, build, test, docs, deploy
<li>main - the default build process (usually build or build & test)
<li>main - the default build process (usually build or build &amp; test)
</ul>
Sub projects &quot;web&quot;, &quot;bean-1&quot;, &quot;bean-2&quot; can be given their own build
files - <tt>web.xml</tt>, <tt>bean-1.xml</tt>, <tt>bean-2.xml</tt> - with the same entry points.


+ 2
- 2
docs/manual/CoreTasks/clone.html View File

@@ -38,10 +38,10 @@ unpredictable results depending on the internals of the cloned class.</b>
<p>
Given a fileset <i>foo</i>:
<pre> &lt;clone id="foo.txt" cloneref=&quot;foo&quot;&gt;
&lt;filename name="**/*.txt" />
&lt;filename name="**/*.txt"/&gt;
&lt;/clone&gt;
&lt;clone id="foo.nontxt" cloneref=&quot;foo&quot;&gt;
&lt;filename name="**/*.txt" negate="true" />
&lt;filename name="**/*.txt" negate="true"/&gt;
&lt;/clone&gt;
</pre>
Creates filesets <i>foo.txt</i> and <i>foo.nontxt</i>, which could be


+ 1
- 1
docs/manual/developlist.html View File

@@ -23,7 +23,7 @@
<a href="antexternal.html">Using Ant Tasks Outside of Ant</a><br>
<br>
<a href="tutorial-writing-tasks.html">Tutorial: Writing Tasks</a><br>
<a href="tutorial-tasks-filesets-properties.html">Tutorial: Tasks using Properties, Filesets & Paths</a><br>
<a href="tutorial-tasks-filesets-properties.html">Tutorial: Tasks using Properties, Filesets &amp; Paths</a><br>

</body>
</html>

+ 5
- 5
docs/manual/tutorial-tasks-filesets-properties.html View File

@@ -1,7 +1,7 @@
<html>
<head>
<link rel="stylesheet" type="text/css" href="stylesheets/style.css"/>
<title>Tutorial: Tasks using Properties, Filesets & Paths</title>
<title>Tutorial: Tasks using Properties, Filesets &amp; Paths</title>
<meta name="author" content="Jan Mat&egrave;rne">
<style type="text/css">
<!--
@@ -11,7 +11,7 @@
</style>
</head>
<body>
<h1>Tutorial: Tasks using Properties, Filesets & Paths</h1>
<h1>Tutorial: Tasks using Properties, Filesets &amp; Paths</h1>

<p>After reading the tutorial about <a href="tutorial-writing-tasks.html">writing
tasks [1]</a> this tutorial explains how to get and set properties and how to use
@@ -280,7 +280,7 @@ can implement our task, so that these test cases will pass.</p>
for(int i=0; i&lt;includedFiles.length; i++) {
String filename = includedFiles[i].replace('\\','/'); // 4
filename = filename.substring(filename.lastIndexOf("/")+1);
if (foundLocation==null && file.equals(filename)) {
if (foundLocation==null &amp;&amp; file.equals(filename)) {
File base = ds.getBasedir(); // 5
File found = new File(base, includedFiles[i]);
foundLocation = found.getAbsolutePath();
@@ -392,7 +392,7 @@ and creating-absolute-paths stuff for us. So the execute method is just:</p>
for(int i=0; i&lt;includedFiles.length; i++) {
String filename = includedFiles[i].replace('\\','/');
filename = filename.substring(filename.lastIndexOf("/")+1);
if (foundLocation==null && file.equals(filename)) {
if (foundLocation==null &amp;&amp; file.equals(filename)) {
<b>foundLocation = includedFiles[i];</b> // 3
}
}
@@ -502,7 +502,7 @@ for reuse later (<b>*3</b>).
for(int i=0; i&lt;includedFiles.length; i++) {
String filename = includedFiles[i].replace('\\','/');
filename = filename.substring(filename.lastIndexOf("/")+1);
if (file.equals(filename) && <b>!foundFiles.contains(includedFiles[i]</b>)) { // 1
if (file.equals(filename) &amp;&amp; <b>!foundFiles.contains(includedFiles[i]</b>)) { // 1
foundFiles.add(includedFiles[i]);
}
}


+ 1
- 1
proposal/embed/src/java/org/apache/tools/ant/ProjectComponentFactory.java View File

@@ -83,7 +83,7 @@ import org.apache.tools.ant.util.FileUtils;
* component is created - and may provide runtime wrapping for components
* not implementing the Task/DataType interfaces.
* It works in close relation with TaskAdapter and RuntimeConfigurable
* to handle delayed evaluation of tasks or custom attribute->task mapping.
* to handle delayed evaluation of tasks or custom attribute-&gt;task mapping.
* If it returns a wrapper for Task, the wrapper is required to extend
* TaskAdapter.
*


+ 1
- 1
proposal/embed/src/java/org/apache/tools/ant/ProjectComponentHelper.java View File

@@ -77,7 +77,7 @@ import org.apache.tools.ant.util.FileUtils;
* component is created - and may provide runtime wrapping for components
* not implementing the Task/DataType interfaces.
* It works in close relation with TaskAdapter and RuntimeConfigurable
* to handle delayed evaluation of tasks or custom attribute->task mapping.
* to handle delayed evaluation of tasks or custom attribute-&gt;task mapping.
* If it returns a wrapper for Task, the wrapper is required to extend
* TaskAdapter.
*


+ 1
- 1
proposal/embed/src/java/org/apache/tools/ant/PropertyHelper.java View File

@@ -70,7 +70,7 @@ import org.xml.sax.helpers.AttributesImpl;
to support generic Objects ( the property remains imutable - you can't change
the associated object ). This will also allow JSP-EL style setting using the
Object if an attribute contains only the property ( name="${property}" could
avoid Object->String->Object conversion )
avoid Object-&gt;String-&gt;Object conversion )
- Currently we "chain" only for get and set property ( probably most users
will only need that - if they need more they can replace the top helper ).
Need to discuss this and find if we need more.


+ 1
- 1
proposal/embed/src/java/org/apache/tools/ant/helper/ProjectHelperImpl2.java View File

@@ -100,7 +100,7 @@ public class ProjectHelperImpl2 extends ProjectHelper {
static AntHandler projectHandler=new ProjectHandler();

/**
* helper for path -> URI and URI -> path conversions.
* helper for path -&gt; URI and URI -&gt; path conversions.
*/
private static FileUtils fu = FileUtils.newFileUtils();



+ 3
- 3
proposal/sandbox/svn/docs/tagdiff.html View File

@@ -83,7 +83,7 @@ BASEURL
destfile="diff.xml"
tag1="initial"
tag2="BCEL_5_0"
/>
/&gt;
</pre>

<p>Generates a tagdiff report for all the changes that have been
@@ -97,7 +97,7 @@ into the file <code>diff.xml</code>.</p>
destfile="diff.xml"
tag1="BCEL_5_0"
tag2="trunk"
/>
/&gt;
</pre>

<p>Generates a tagdiff report for all the changes that have been made
@@ -110,7 +110,7 @@ changes into the file <code>diff.xml</code>.</p>
baseURL="http://svn.apache.org/repos/asf/jakarta/bcel/"
destfile="diff.xml"
tag1="BCEL_5_0"
/>
/&gt;
</pre>

<p>Does the same, using <code>trunk</code> as <code>tag2</code>


Loading…
Cancel
Save