Browse Source

use configured local DTDs in Iplanet deployment tool. PR 31876. Submitted by Daniel Henrique.

git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@677518 13f79535-47bb-0310-9956-ffa450edef68
master
Stefan Bodewig 17 years ago
parent
commit
fb1e6a07ee
4 changed files with 18 additions and 0 deletions
  1. +1
    -0
      CONTRIBUTORS
  2. +3
    -0
      WHATSNEW
  3. +4
    -0
      contributors.xml
  4. +10
    -0
      src/main/org/apache/tools/ant/taskdefs/optional/ejb/IPlanetDeploymentTool.java

+ 1
- 0
CONTRIBUTORS View File

@@ -50,6 +50,7 @@ Cyrille Morvan
D'Arcy Smith
Dale Anson
Dan Armbrust
Daniel Henrique
Daniel Ribagnac
Daniel Spilker
Danno Ferrin


+ 3
- 0
WHATSNEW View File

@@ -120,6 +120,9 @@ Fixed bugs:
writing anything.
Bugzilla Report 32200

* The IPlanetDeploymentToll didn't use the configured DTD locations.
Bugzilla Report 31876.

Other changes:
--------------



+ 4
- 0
contributors.xml View File

@@ -223,6 +223,10 @@
<first>Dan</first>
<last>Armbrust</last>
</name>
<name>
<first>Daniel</first>
<last>Henrique</last>
</name>
<name>
<first>Daniel</first>
<last>Ribagnac</last>


+ 10
- 0
src/main/org/apache/tools/ant/taskdefs/optional/ejb/IPlanetDeploymentTool.java View File

@@ -21,6 +21,7 @@ package org.apache.tools.ant.taskdefs.optional.ejb;
import java.io.File;
import java.io.IOException;
import java.util.Hashtable;
import java.util.Iterator;
import javax.xml.parsers.SAXParser;
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Project;
@@ -252,6 +253,15 @@ public class IPlanetDeploymentTool extends GenericDeploymentTool {
if (iashome != null) {
ejbc.setIasHomeDir(iashome);
}
if (getConfig().dtdLocations != null) {
for (Iterator i = getConfig().dtdLocations.iterator();
i.hasNext(); ) {
EjbJar.DTDLocation dtdLocation =
(EjbJar.DTDLocation) i.next();
ejbc.registerDTD(dtdLocation.getPublicId(),
dtdLocation.getLocation());
}
}

/* Execute the ejbc utility -- stubs/skeletons are rebuilt, if needed */
try {


Loading…
Cancel
Save