Methods Summary |
---|
protected void | addVendorFiles(java.util.Hashtable ejbFiles, java.lang.String ddPrefix)Add any vendor specific files which should be included in the
EJB Jar.
super.addVendorFiles(ejbFiles, ddPrefix);
// Then the toplink deployment descriptor
// Setup a naming standard here?.
File toplinkDD = new File(getConfig().descriptorDir, ddPrefix + toplinkDescriptor);
if (toplinkDD.exists()) {
ejbFiles.put(META_DIR + toplinkDescriptor,
toplinkDD);
} else {
log("Unable to locate toplink deployment descriptor. "
+ "It was expected to be in "
+ toplinkDD.getPath(), Project.MSG_WARN);
}
|
protected DescriptorHandler | getDescriptorHandler(java.io.File srcDir)Get the descriptor handler.
DescriptorHandler handler = super.getDescriptorHandler(srcDir);
if (toplinkDTD != null) {
handler.registerDTD("-//The Object People, Inc.//"
+ "DTD TOPLink for WebLogic CMP 2.5.1//EN", toplinkDTD);
} else {
handler.registerDTD("-//The Object People, Inc.//"
+ "DTD TOPLink for WebLogic CMP 2.5.1//EN", TL_DTD_LOC);
}
return handler;
|
public void | setToplinkdescriptor(java.lang.String inString)Setter used to store the name of the toplink descriptor.
this.toplinkDescriptor = inString;
|
public void | setToplinkdtd(java.lang.String inString)Setter used to store the location of the toplink DTD file.
This is expected to be an URL (file or otherwise). If running
this on NT using a file URL, the safest thing would be to not use a
drive spec in the URL and make sure the file resides on the drive that
ANT is running from. This will keep the setting in the build XML
platform independent.
this.toplinkDTD = inString;
|
public void | validateConfigured()Called to validate that the tool parameters have been configured.
super.validateConfigured();
if (toplinkDescriptor == null) {
throw new BuildException("The toplinkdescriptor attribute must "
+ "be specified");
}
|