commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From patri...@apache.org
Subject cvs commit: jakarta-commons/launcher/src/java/org/apache/commons/launcher LaunchCommand.java LaunchTask.java
Date Tue, 22 Apr 2003 00:49:17 GMT
patrickl    2003/04/21 17:49:17

  Modified:    launcher build.xml
               launcher/src/java/org/apache/commons/launcher
                        LaunchCommand.java LaunchTask.java
  Log:
  Fix minor bugs in getting and setting of the "disposeminimizedwindow" property
  Submitted by:   Ramesh Mandava (ramesh.mandava@sun.com)
  
  Revision  Changes    Path
  1.2       +2 -3      jakarta-commons/launcher/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/launcher/build.xml,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- build.xml	25 Oct 2002 09:03:15 -0000	1.1
  +++ build.xml	22 Apr 2003 00:49:17 -0000	1.2
  @@ -242,8 +242,7 @@
                  perm="a+x"/>
       <pathconvert property="ant.jar.list" targetos="unix">
         <path>
  -        <fileset dir="dist/lib" includes="*.jar"/>
  -      </path>
  +        <fileset dir="${dist.home}/lib" includes="*.jar"/> </path>
       </pathconvert>
       <pathconvert property="dist.home.converted" targetos="unix">
         <path>
  
  
  
  1.2       +1 -1      jakarta-commons/launcher/src/java/org/apache/commons/launcher/LaunchCommand.java
  
  Index: LaunchCommand.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/launcher/src/java/org/apache/commons/launcher/LaunchCommand.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- LaunchCommand.java	25 Oct 2002 09:03:17 -0000	1.1
  +++ LaunchCommand.java	22 Apr 2003 00:49:17 -0000	1.2
  @@ -488,7 +488,7 @@
        */
       public void setDisposeminimizedwindow(boolean disposeMinimizedWindow) {
   
  -        this.disposeMinimizedWindow = displayMinimizedWindow;
  +        this.disposeMinimizedWindow = disposeMinimizedWindow;
   
       }
   
  
  
  
  1.2       +11 -2     jakarta-commons/launcher/src/java/org/apache/commons/launcher/LaunchTask.java
  
  Index: LaunchTask.java
  ===================================================================
  RCS file: /home/cvs/jakarta-commons/launcher/src/java/org/apache/commons/launcher/LaunchTask.java,v
  retrieving revision 1.1
  retrieving revision 1.2
  diff -u -r1.1 -r1.2
  --- LaunchTask.java	25 Oct 2002 09:03:18 -0000	1.1
  +++ LaunchTask.java	22 Apr 2003 00:49:17 -0000	1.2
  @@ -563,6 +563,14 @@
                       String outputFilePath = filteredOutputFile.getCanonicalPath();
                       // Verify that we can write to the output file
                       try {
  +			File parentFile = new File(filteredOutputFile.getParent());
  +			// To take care of non-existent log directories
  +			if ( !parentFile.exists() ) {
  +			    //Trying to create non-existent parent directories
  +			    parentFile.mkdirs();
  +			    //If this fails createNewFile also fails
  +			    //We can give more exact error message, if we choose
  +			}
                           filteredOutputFile.createNewFile();
                       } catch (IOException ioe) {
                           throw new BuildException(outputFilePath + " " + Launcher.getLocalizedString("output.file.not.creatable",
this.getClass().getName()));
  @@ -628,8 +636,9 @@
               cmd[nextCmdArg++] = filteredMainClassName;
               // Add args to command
               for (int i = 0; i < appArgs.size(); i++)
  +	    {
                   cmd[nextCmdArg++] = (String)appArgs.get(i);
  -
  +	    }
               // Print command
               if (filteredPrint) {
                   // Quote the command arguments
  @@ -846,7 +855,7 @@
        */
       public void setDisposeminimizedwindow(boolean disposeMinimizedWindow) {
   
  -        this.disposeMinimizedWindow = displayMinimizedWindow;
  +        this.disposeMinimizedWindow = disposeMinimizedWindow;
   
       }
   
  
  
  

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


Mime
View raw message