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 D'Arcy Smith
Dale Anson Dale Anson
Dan Armbrust Dan Armbrust
Daniel Henrique
Daniel Ribagnac Daniel Ribagnac
Daniel Spilker Daniel Spilker
Danno Ferrin Danno Ferrin


+ 3
- 0
WHATSNEW View File

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


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

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




+ 4
- 0
contributors.xml View File

@@ -223,6 +223,10 @@
<first>Dan</first> <first>Dan</first>
<last>Armbrust</last> <last>Armbrust</last>
</name> </name>
<name>
<first>Daniel</first>
<last>Henrique</last>
</name>
<name> <name>
<first>Daniel</first> <first>Daniel</first>
<last>Ribagnac</last> <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.File;
import java.io.IOException; import java.io.IOException;
import java.util.Hashtable; import java.util.Hashtable;
import java.util.Iterator;
import javax.xml.parsers.SAXParser; import javax.xml.parsers.SAXParser;
import org.apache.tools.ant.BuildException; import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Project; import org.apache.tools.ant.Project;
@@ -252,6 +253,15 @@ public class IPlanetDeploymentTool extends GenericDeploymentTool {
if (iashome != null) { if (iashome != null) {
ejbc.setIasHomeDir(iashome); 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 */ /* Execute the ejbc utility -- stubs/skeletons are rebuilt, if needed */
try { try {


Loading…
Cancel
Save