You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by pe...@apache.org on 2006/11/11 23:36:50 UTC
svn commit: r473820 - in
/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ejb:
BorlandDeploymentTool.java GenericDeploymentTool.java
WebsphereDeploymentTool.java
Author: peterreilly
Date: Sat Nov 11 14:36:49 2006
New Revision: 473820
URL: http://svn.apache.org/viewvc?view=rev&rev=473820
Log:
javadoc
Modified:
ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ejb/BorlandDeploymentTool.java
ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ejb/GenericDeploymentTool.java
ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ejb/WebsphereDeploymentTool.java
Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ejb/BorlandDeploymentTool.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ejb/BorlandDeploymentTool.java?view=diff&rev=473820&r1=473819&r2=473820
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ejb/BorlandDeploymentTool.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ejb/BorlandDeploymentTool.java Sat Nov 11 14:36:49 2006
@@ -76,6 +76,7 @@
*/
public class BorlandDeploymentTool extends GenericDeploymentTool
implements ExecuteStreamHandler {
+ /** Borland 1.1 ejb id */
public static final String PUBLICID_BORLAND_EJB
= "-//Inprise Corporation//DTD Enterprise JavaBeans 1.1//EN";
@@ -126,10 +127,11 @@
private boolean verify = true;
private String verifyArgs = "";
- private Hashtable _genfiles = new Hashtable();
+ private Hashtable genfiles = new Hashtable();
/**
* set the debug mode for java2iiop (default false)
+ * @param debug the setting to use.
**/
public void setDebug(boolean debug) {
this.java2iiopdebug = debug;
@@ -137,6 +139,7 @@
/**
* set the verify mode for the produced jar (default true)
+ * @param verify the setting to use.
**/
public void setVerify(boolean verify) {
this.verify = verify;
@@ -173,6 +176,7 @@
/**
* setter used to store whether the task will include the generate client task.
* (see : BorlandGenerateClient task)
+ * @param b if true generate the client task.
*/
public void setGenerateclient(boolean b) {
this.generateclient = b;
@@ -226,6 +230,8 @@
/**
* Add any vendor specific files which should be included in the
* EJB Jar.
+ * @param ejbFiles the map to add the files to.
+ * @param ddPrefix the prefix to use.
*/
protected void addVendorFiles(Hashtable ejbFiles, String ddPrefix) {
@@ -457,7 +463,7 @@
buildBorlandStubs(homes.iterator());
//add the gen files to the collection
- files.putAll(_genfiles);
+ files.putAll(genfiles);
super.writeJar(baseName, jarFile, files, publicId);
@@ -511,7 +517,7 @@
if (javafile.endsWith(".java")) {
String classfile = toClassFile(javafile);
String key = classfile.substring(getConfig().srcDir.getAbsolutePath().length() + 1);
- _genfiles.put(key, new File(classfile));
+ genfiles.put(key, new File(classfile));
}
}
reader.close();
Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ejb/GenericDeploymentTool.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ejb/GenericDeploymentTool.java?view=diff&rev=473820&r1=473819&r2=473820
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ejb/GenericDeploymentTool.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ejb/GenericDeploymentTool.java Sat Nov 11 14:36:49 2006
@@ -356,6 +356,10 @@
}
}
+ /**
+ * Get a descriptionHandler.
+ * @param srcDir the source directory.
+ */
protected DescriptorHandler getDescriptorHandler(File srcDir) {
DescriptorHandler h = new DescriptorHandler(getTask(), srcDir);
@@ -643,6 +647,8 @@
/**
* Add any vendor specific files which should be included in the
* EJB Jar.
+ * @param ejbFiles a hashtable entryname -> file.
+ * @param ddPrefix a prefix to use.
*/
protected void addVendorFiles(Hashtable ejbFiles, String ddPrefix) {
// nothing to add for generic tool.
Modified: ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ejb/WebsphereDeploymentTool.java
URL: http://svn.apache.org/viewvc/ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ejb/WebsphereDeploymentTool.java?view=diff&rev=473820&r1=473819&r2=473820
==============================================================================
--- ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ejb/WebsphereDeploymentTool.java (original)
+++ ant/core/trunk/src/main/org/apache/tools/ant/taskdefs/optional/ejb/WebsphereDeploymentTool.java Sat Nov 11 14:36:49 2006
@@ -30,7 +30,6 @@
import org.apache.tools.ant.BuildException;
import org.apache.tools.ant.Project;
import org.apache.tools.ant.taskdefs.Java;
-import org.apache.tools.ant.types.EnumeratedAttribute;
import org.apache.tools.ant.types.Environment;
import org.apache.tools.ant.types.Path;
import org.apache.tools.ant.util.FileUtils;
@@ -60,10 +59,13 @@
*
*/
public class WebsphereDeploymentTool extends GenericDeploymentTool {
+ /** ID for ejb 1.1 */
public static final String PUBLICID_EJB11
= "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 1.1//EN";
+ /** ID for ejb 2.0 */
public static final String PUBLICID_EJB20
= "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN";
+ /** Schema directory */
protected static final String SCHEMA_DIR = "Schema/";
protected static final String WAS_EXT = "ibm-ejb-jar-ext.xmi";
@@ -132,7 +134,10 @@
/** the home directory for websphere */
private File websphereHome;
- /** Get the classpath to the websphere classpaths */
+ /**
+ * Get the classpath to the websphere classpaths.
+ * @return the websphere classpath.
+ */
public Path createWASClasspath() {
if (wasClasspath == null) {
wasClasspath = new Path(getTask().getProject());
@@ -141,6 +146,10 @@
}
+ /**
+ * Set the websphere classpath.
+ * @param wasClasspath the websphere classpath.
+ */
public void setWASClasspath(Path wasClasspath) {
this.wasClasspath = wasClasspath;
}
@@ -240,7 +249,7 @@
/**
* Flag to enable internal tracing when set, optional, default false.
*
- * @param trace
+ * @param trace a <code>boolean</code> vaule.
*/
public void setTrace(boolean trace) {
this.trace = trace;
@@ -249,7 +258,7 @@
/**
* Set the rmic options.
*
- * @param options
+ * @param options the options to use.
*/
public void setRmicoptions(String options) {
this.rmicOptions = options;
@@ -258,7 +267,7 @@
/**
* Flag to use the WebSphere 3.5 compatible mapping rules ; optional, default false.
*
- * @param attr
+ * @param attr a <code>boolean</code> value.
*/
public void setUse35(boolean attr) {
use35MappingRules = attr;
@@ -268,6 +277,7 @@
/**
* Set the rebuild flag to false to only update changes in the jar rather
* than rerunning ejbdeploy; optional, default true.
+ * @param rebuild a <code>boolean</code> value.
*/
public void setRebuild(boolean rebuild) {
this.alwaysRebuild = rebuild;
@@ -320,6 +330,7 @@
/**
* Set the value of the oldCMP scheme. This is an antonym for newCMP
* @ant.attribute ignore="true"
+ * @param oldCMP a <code>boolean</code> value.
*/
public void setOldCMP(boolean oldCMP) {
this.newCMP = !oldCMP;
@@ -333,6 +344,7 @@
* prefix. Under this scheme the name of the CMP descriptor does not match
* the name actually used in the main websphere EJB descriptor. Also,
* descriptors which contain multiple CMP references could not be used.
+ * @param newCMP a <code>boolean</code> value.
*/
public void setNewCMP(boolean newCMP) {
this.newCMP = newCMP;
@@ -342,13 +354,14 @@
/**
* The directory, where ejbdeploy will write temporary files;
* optional, defaults to '_ejbdeploy_temp'.
+ * @param tempdir the directory name to use.
*/
-
public void setTempdir(String tempdir) {
this.tempdir = tempdir;
}
+ /* {@inheritDoc}. */
protected DescriptorHandler getDescriptorHandler(File srcDir) {
DescriptorHandler handler = new DescriptorHandler(getTask(), srcDir);
// register all the DTDs, both the ones that are known and
@@ -365,6 +378,10 @@
}
+ /**
+ * Get a description handler.
+ * @param srcDir the source directory.
+ */
protected DescriptorHandler getWebsphereDescriptorHandler(final File srcDir) {
DescriptorHandler handler =
new DescriptorHandler(getTask(), srcDir) {
@@ -383,6 +400,8 @@
/**
* Add any vendor specific files which should be included in the EJB Jar.
+ * @param ejbFiles a hashtable entryname -> file.
+ * @param baseName a prefix to use.
*/
protected void addVendorFiles(Hashtable ejbFiles, String baseName) {
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org