User: rinkrank
  Date: 02/05/15 11:55:43

  Modified:    modules/macromedia/src/xdoclet/modules/macromedia/jrun/web
                        Tag: MODULE_REFACTORING_BRANCH
                        JRunWebXmlSubTask.java
  Log:
  -xdoclet.web.WebDocletTask -> xdoclet.modules.bweb.WebDocletTask in various places
  -introduced ${xdoclet.root.dir} in stead of relative paths from ${basedir}
  -modified classpath used when building xdoclet.xml (include previously built module 
jars)
  -removed common.xml. obsolete
  -simplified module build scripts
  -renamed deploymentdescriptor subtask (in ejb and web) to ejbjarxml and webxml. due 
to duplicate key lookup in DocletTask
  
  Revision  Changes    Path
  No                   revision
  
  
  No                   revision
  
  
  1.1.2.5   +185 -177  
xdoclet/modules/macromedia/src/xdoclet/modules/macromedia/jrun/web/Attic/JRunWebXmlSubTask.java
  
  Index: JRunWebXmlSubTask.java
  ===================================================================
  RCS file: 
/cvsroot/xdoclet/xdoclet/modules/macromedia/src/xdoclet/modules/macromedia/jrun/web/Attic/JRunWebXmlSubTask.java,v
  retrieving revision 1.1.2.4
  retrieving revision 1.1.2.5
  diff -u -w -r1.1.2.4 -r1.1.2.5
  --- JRunWebXmlSubTask.java    9 May 2002 16:42:52 -0000       1.1.2.4
  +++ JRunWebXmlSubTask.java    15 May 2002 18:55:43 -0000      1.1.2.5
  @@ -4,38 +4,20 @@
    */
   package xdoclet.modules.macromedia.jrun.web;
   
  -import xdoclet.XmlSubTask;
  -
   import java.io.File;
   
  +import xdoclet.XmlSubTask;
  +
   /**
    * Generates jrun-web.xml deployment descriptor.
    *
  - * @xdoclet:subtask name="jrunwebxml" parent="xdoclet.web.WebDocletTask"
  - *
    * @author Dan Schaffer ([EMAIL PROTECTED])
    * @created February 7, 2002
  - * @version $Revision: 1.1.2.4 $
  + * @xdoclet:subtask   name="jrunwebxml" parent="xdoclet.modules.web.WebDocletTask"
  + * @version           $Revision: 1.1.2.5 $
    */
  -public class JRunWebXmlSubTask extends XmlSubTask {
  -
  -     /**
  -      * The Security Domain, defaults to "" because it is not included if not set in
  -      * the build.xml.
  -      */
  -     protected String contextRoot = "";
  -     /**
  -      * @todo-javadoc Describe the field
  -      */
  -     protected String reload = "";
  -     /**
  -      * @todo-javadoc Describe the field
  -      */
  -     protected String compile = "";
  -     /**
  -      * @todo-javadoc Describe the field
  -      */
  -     protected String loadSystemClassesFirst = "";
  +public class JRunWebXmlSubTask extends XmlSubTask
  +{
        /**
         * @todo-javadoc Describe the field
         */
  @@ -64,13 +46,31 @@
         */
        private static String GENERATED_FILE_NAME = "jrun-web.xml";
   
  +    /**
  +     * The Security Domain, defaults to "" because it is not included if not set in 
the build.xml.
  +     */
  +    protected String contextRoot = "";
  +    /**
  +     * @todo-javadoc   Describe the field
  +     */
  +    protected String reload = "";
  +    /**
  +     * @todo-javadoc   Describe the field
  +     */
  +    protected String compile = "";
  +    /**
  +     * @todo-javadoc   Describe the field
  +     */
  +    protected String loadSystemClassesFirst = "";
  +
   
        /**
         * Describe what the JRunWebXmlSubTask constructor does
         *
         * @todo-javadoc Write javadocs for constructor
         */
  -     public JRunWebXmlSubTask() {
  +    public JRunWebXmlSubTask()
  +    {
                setTemplateURL(getClass().getResource(DEFAULT_TEMPLATE_FILE));
                setDestinationFile(GENERATED_FILE_NAME);
                setPublicId(JRUN_WEB_PUBLICID);
  @@ -80,111 +80,119 @@
   
   
        /**
  -      * Set the Context Root..
  +     * Gets the SubTaskName attribute of the JRunWebXmlSubTask object
         *
  -      * @param contextRoot the new context root
  +     * @return   The SubTaskName value
         */
  -     public void setContextRoot(String contextRoot) {
  -             this.contextRoot = contextRoot;
  +    public String getSubTaskName()
  +    {
  +        return SUBTASK_NAME;
        }
   
   
        /**
  -      * Set the Reload setting to either true or false.
  +     * Return the Context Root of the web application. This is where the webApp 
will be installed in the browser (e.g.
  +     * http://localhost:8100/contextRoot
         *
  -      * @param reload new reload value
  +     * @return   The Context Root
         */
  -     public void setReload(String reload) {
  -             if (reload.equalsIgnoreCase("true")) {
  -                     this.reload = "true";
  -             }
  -             else {
  -                     this.reload = "false";
  -             }
  +    public String getContextRoot()
  +    {
  +        return contextRoot;
        }
   
   
        /**
  -      * Set the Compile setting to either true or false.
  +     * Return the Reload setting. Determines whether to automatically reload 
servlets, helper classes, jsp helper
  +     * classes.
         *
  -      * @param compile new compile value
  +     * @return   reload setting either true or false
         */
  -     public void setCompile(String compile) {
  -             if (compile.equalsIgnoreCase("true")) {
  -                     this.compile = "true";
  -             }
  -             else {
  -                     this.compile = "false";
  -             }
  +    public String getReload()
  +    {
  +        return reload;
        }
   
   
        /**
  -      * Set the LoadSystemClassesFirst setting to either true or false.
  +     * Return the Compile setting. Determines whether to automatically compile 
servlets
         *
  -      * @param loadSystemClassesFirst new setting
  +     * @return   compile setting either true or false
         */
  -     public void setLoadSystemClassesFirst(String loadSystemClassesFirst) {
  -             if (loadSystemClassesFirst.equalsIgnoreCase("true")) {
  -                     this.loadSystemClassesFirst = "true";
  -             }
  -             else {
  -                     this.loadSystemClassesFirst = "false";
  -             }
  +    public String getCompile()
  +    {
  +        return compile;
        }
   
   
        /**
  -      * Gets the SubTaskName attribute of the JRunWebXmlSubTask object
  +     * Return the Load-System-Classes-First setting. Determines whether to load 
system classpath first or app server
  +     * classpath.
         *
  -      * @return The SubTaskName value
  +     * @return   loadSystemClassesFirst setting
         */
  -     public String getSubTaskName() {
  -             return SUBTASK_NAME;
  +    public String getLoadSystemClassesFirst()
  +    {
  +        return loadSystemClassesFirst;
        }
   
   
        /**
  -      * Return the Context Root of the web application. This is where the webApp
  -      * will be installed in the browser (e.g. http://localhost:8100/contextRoot
  +     * Set the Context Root..
         *
  -      * @return The Context Root
  +     * @param contextRoot  the new context root
         */
  -     public String getContextRoot() {
  -             return contextRoot;
  +    public void setContextRoot(String contextRoot)
  +    {
  +        this.contextRoot = contextRoot;
        }
   
   
        /**
  -      * Return the Reload setting. Determines whether to automatically reload
  -      * servlets, helper classes, jsp helper classes.
  +     * Set the Reload setting to either true or false.
         *
  -      * @return reload setting either true or false
  +     * @param reload  new reload value
         */
  -     public String getReload() {
  -             return reload;
  +    public void setReload(String reload)
  +    {
  +        if (reload.equalsIgnoreCase("true")) {
  +            this.reload = "true";
  +        }
  +        else {
  +            this.reload = "false";
  +        }
        }
   
   
        /**
  -      * Return the Compile setting. Determines whether to automatically compile
  -      * servlets
  +     * Set the Compile setting to either true or false.
         *
  -      * @return compile setting either true or false
  +     * @param compile  new compile value
         */
  -     public String getCompile() {
  -             return compile;
  +    public void setCompile(String compile)
  +    {
  +        if (compile.equalsIgnoreCase("true")) {
  +            this.compile = "true";
  +        }
  +        else {
  +            this.compile = "false";
  +        }
        }
   
   
        /**
  -      * Return the Load-System-Classes-First setting. Determines whether to load
  -      * system classpath first or app server classpath.
  +     * Set the LoadSystemClassesFirst setting to either true or false.
         *
  -      * @return loadSystemClassesFirst setting
  +     * @param loadSystemClassesFirst  new setting
         */
  -     public String getLoadSystemClassesFirst() {
  -             return loadSystemClassesFirst;
  +    public void setLoadSystemClassesFirst(String loadSystemClassesFirst)
  +    {
  +        if (loadSystemClassesFirst.equalsIgnoreCase("true")) {
  +            this.loadSystemClassesFirst = "true";
  +        }
  +        else {
  +            this.loadSystemClassesFirst = "false";
  +        }
        }
   }
   
  
  
  


_______________________________________________
Xdoclet-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/xdoclet-devel

Reply via email to