ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 31876] New: - IPlanet/SunOne EjbJar Subtask is ignoring local DTDs
Date Mon, 25 Oct 2004 10:18:29 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=31876>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=31876

IPlanet/SunOne EjbJar Subtask is ignoring local DTDs

           Summary: IPlanet/SunOne EjbJar Subtask is ignoring local DTDs
           Product: Ant
           Version: 1.6.2
          Platform: All
        OS/Version: Windows NT/2K
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Optional Tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: email_daniel_h@yahoo.com.br


DTD subelements under ejbjar are ignored when iplanet deployment tool is used. 
Because, at my company, we don't have internet access, ejbjar cannot find dtds 
and it fails ! 

To correct this situation i've modified the code below from:

// parseEjbFiles
ejbc.setRetainSource(keepgenerated);
ejbc.setDebugOutput(debug);
             
if (iashome != null) {
  ejbc.setIasHomeDir(iashome);
}


To:

//parseEjbFiles
ejbc.setRetainSource(keepgenerated);
ejbc.setDebugOutput(debug);
        
for (Iterator i = getConfig().dtdLocations.iterator(); i.hasNext();) {
   EjbJar.DTDLocation dtdLocation = (EjbJar.DTDLocation) i.next();
   ejbc.registerDTD(dtdLocation.getPublicId(), dtdLocation.getLocation());
}
        
if (iashome != null) {
   ejbc.setIasHomeDir(iashome);
}

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message