You are viewing a plain text version of this content. The canonical link for it is here.
Posted to xmlbeans-cvs@xml.apache.org by pc...@apache.org on 2003/11/20 03:09:28 UTC

cvs commit: xml-xmlbeans/v2/src/binding/org/apache/xmlbeans/impl/binding/compile Java2SchemaTask.java

pcal        2003/11/19 18:09:28

  Modified:    v2/src/binding/org/apache/xmlbeans/impl/binding/compile
                        Java2SchemaTask.java
  Log:
  fix small npe
  
  Revision  Changes    Path
  1.6       +4 -3      xml-xmlbeans/v2/src/binding/org/apache/xmlbeans/impl/binding/compile/Java2SchemaTask.java
  
  Index: Java2SchemaTask.java
  ===================================================================
  RCS file: /home/cvs/xml-xmlbeans/v2/src/binding/org/apache/xmlbeans/impl/binding/compile/Java2SchemaTask.java,v
  retrieving revision 1.5
  retrieving revision 1.6
  diff -u -r1.5 -r1.6
  --- Java2SchemaTask.java	12 Nov 2003 04:06:33 -0000	1.5
  +++ Java2SchemaTask.java	20 Nov 2003 02:09:27 -0000	1.6
  @@ -150,7 +150,7 @@
     // =========================================================================
     // Task implementation
   
  -   /**
  +  /**
      * Execute the task.
      */
     public void execute() throws BuildException {
  @@ -159,13 +159,14 @@
       if (list.length != 1) throw new IllegalStateException("NYI");
       JFileSet fs = jf.createFileSet(new File(list[0]));
       fs.include(mIncludes);
  +    String classpathString = null;
       if (mClasspath != null) {
         //this will be removed after jam factory is refactored
  -      fs.setClasspath(mClasspath.toString());
  +      fs.setClasspath(classpathString = mClasspath.toString());
       }
       final JClass[] classes;
       try {
  -      classes = jf.loadSources(fs,null,null,null,null,mClasspath.toString());
  +      classes = jf.loadSources(fs,null,null,null,null,classpathString);
       } catch(IOException ioe) {
         ioe.printStackTrace();
         throw new BuildException(ioe);
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: xmlbeans-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: xmlbeans-cvs-help@xml.apache.org