You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@xmlbeans.apache.org by pc...@apache.org on 2004/02/27 20:30:36 UTC

cvs commit: xml-xmlbeans/v2/src/jam/org/apache/xmlbeans/impl/jam/provider DefaultJProvider.java

pcal        2004/02/27 11:30:36

  Modified:    v2       build.xml
               v2/src/jam/org/apache/xmlbeans/impl/jam/provider
                        DefaultJProvider.java
  Log:
  fix jam bug with empty source set, add 'jamdocs' build target
  
  Revision  Changes    Path
  1.39      +25 -0     xml-xmlbeans/v2/build.xml
  
  Index: build.xml
  ===================================================================
  RCS file: /home/cvs/xml-xmlbeans/v2/build.xml,v
  retrieving revision 1.38
  retrieving revision 1.39
  diff -u -r1.38 -r1.39
  --- build.xml	25 Feb 2004 18:56:48 -0000	1.38
  +++ build.xml	27 Feb 2004 19:30:36 -0000	1.39
  @@ -523,6 +523,31 @@
       </copy>
     </target>
   
  +  <target name="jamdocs" depends="xbean">
  +    <property name="docs.dir" value="build/docs" /> 
  +    <delete dir="${docs.dir}" /> 
  +    <mkdir dir="${docs.dir}" /> 
  +    <javadoc packagenames="*" classpath="${javadoc.path}" destdir="${docs.dir}/reference" windowtitle="XMLBeans Documentation" source="1.4" stylesheetfile="docs/stylesheet.css">
  +      <fileset dir="src" includes="**/jam/*.java,**/jeti/**/*.java" casesensitive="yes">
  +        <exclude name="**/*Test*" /> 
  +      </fileset>
  +      <link href="http://e-docs.bea.com/wls/docs81/javadocs/" /> 
  +      <link href="http://java.sun.com/j2se/1.4.2/docs/api/" /> 
  +      <link href="http://java.sun.com/j2ee/1.4/docs/api/" /> 
  +      <link href="http://xml.apache.org/xerces-j/apiDocs/" /> 
  +      <classpath>
  +        <pathelement location="build/ar/xbean.jar" /> 
  +      </classpath>
  +    </javadoc>
  +    <copy file="docs/xmlbeans.css" tofile="${docs.dir}/xmlbeans.css" /> 
  +    <copy todir="${docs.dir}/guide">
  +      <fileset dir="docs/guide" /> 
  +    </copy>
  +    <copy todir="${docs.dir}/images">
  +      <fileset dir="docs/images" /> 
  +    </copy>
  +  </target>
  +
     <!-- stream conformance tests ======================================= -->
   
     <target name="streamtest.classes" depends="dirs">
  
  
  
  1.5       +2 -1      xml-xmlbeans/v2/src/jam/org/apache/xmlbeans/impl/jam/provider/DefaultJProvider.java
  
  Index: DefaultJProvider.java
  ===================================================================
  RCS file: /home/cvs/xml-xmlbeans/v2/src/jam/org/apache/xmlbeans/impl/jam/provider/DefaultJProvider.java,v
  retrieving revision 1.4
  retrieving revision 1.5
  diff -u -r1.4 -r1.5
  --- DefaultJProvider.java	25 Feb 2004 18:56:49 -0000	1.4
  +++ DefaultJProvider.java	27 Feb 2004 19:30:36 -0000	1.5
  @@ -65,12 +65,13 @@
     // Public methods
   
     public JClassLoader createSourceLoader(JServiceParamsImpl params,
  -                                              JClassLoader parent)
  +                                         JClassLoader parent)
             throws IOException
     {
       //FIXME someday should make the name of the service class to use here
       //settable via a system property
       File[] files = params.getSourceFiles();
  +    if (files == null || files.length == 0) return parent;
       String sourcePath = (params.getInputSourcepath() == null) ? null :
               params.getInputSourcepath().toString();
       String classPath = (params.getInputClasspath() == null) ? null :
  
  
  

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