You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by de...@apache.org on 2007/03/04 16:34:13 UTC
svn commit: r514410 - in /maven/jxr/trunk/src:
main/java/org/apache/maven/jxr/ant/ main/resources/templates/
test/java/org/apache/maven/jxr/
Author: dennisl
Date: Sun Mar 4 07:34:12 2007
New Revision: 514410
URL: http://svn.apache.org/viewvc?view=rev&rev=514410
Log:
o Set EOL style to native.
Modified:
maven/jxr/trunk/src/main/java/org/apache/maven/jxr/ant/DirectoryScanner.java (contents, props changed)
maven/jxr/trunk/src/main/resources/templates/allclasses-frame.vm (props changed)
maven/jxr/trunk/src/main/resources/templates/index.vm (props changed)
maven/jxr/trunk/src/main/resources/templates/overview-frame.vm (props changed)
maven/jxr/trunk/src/main/resources/templates/overview-summary.vm (props changed)
maven/jxr/trunk/src/main/resources/templates/package-frame.vm (props changed)
maven/jxr/trunk/src/main/resources/templates/package-summary.vm (props changed)
maven/jxr/trunk/src/test/java/org/apache/maven/jxr/JavaCodeTransformTest.java (contents, props changed)
maven/jxr/trunk/src/test/java/org/apache/maven/jxr/JxrBeanTest.java (contents, props changed)
maven/jxr/trunk/src/test/java/org/apache/maven/jxr/package-info.java (props changed)
Modified: maven/jxr/trunk/src/main/java/org/apache/maven/jxr/ant/DirectoryScanner.java
URL: http://svn.apache.org/viewvc/maven/jxr/trunk/src/main/java/org/apache/maven/jxr/ant/DirectoryScanner.java?view=diff&rev=514410&r1=514409&r2=514410
==============================================================================
--- maven/jxr/trunk/src/main/java/org/apache/maven/jxr/ant/DirectoryScanner.java (original)
+++ maven/jxr/trunk/src/main/java/org/apache/maven/jxr/ant/DirectoryScanner.java Sun Mar 4 07:34:12 2007
@@ -1,47 +1,47 @@
-package org.apache.maven.jxr.ant;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import java.io.File;
-
-/**
- * Workaround to ignore package-info.java files.
- *
- * @author Carlos Sanchez
- */
-public class DirectoryScanner
- extends org.codehaus.plexus.util.DirectoryScanner
-{
-
- public void addDefaultExcludes()
- {
- super.addDefaultExcludes();
- int excludesLength = excludes == null ? 0 : excludes.length;
- String[] newExcludes;
- newExcludes = new String[excludesLength + 1];
- if ( excludesLength > 0 )
- {
- System.arraycopy( excludes, 0, newExcludes, 0, excludesLength );
- }
- newExcludes[excludesLength] = "**" + File.separatorChar + "package-info.java";
- excludes = newExcludes;
- }
-
-}
+package org.apache.maven.jxr.ant;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import java.io.File;
+
+/**
+ * Workaround to ignore package-info.java files.
+ *
+ * @author Carlos Sanchez
+ */
+public class DirectoryScanner
+ extends org.codehaus.plexus.util.DirectoryScanner
+{
+
+ public void addDefaultExcludes()
+ {
+ super.addDefaultExcludes();
+ int excludesLength = excludes == null ? 0 : excludes.length;
+ String[] newExcludes;
+ newExcludes = new String[excludesLength + 1];
+ if ( excludesLength > 0 )
+ {
+ System.arraycopy( excludes, 0, newExcludes, 0, excludesLength );
+ }
+ newExcludes[excludesLength] = "**" + File.separatorChar + "package-info.java";
+ excludes = newExcludes;
+ }
+
+}
Propchange: maven/jxr/trunk/src/main/java/org/apache/maven/jxr/ant/DirectoryScanner.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/jxr/trunk/src/main/resources/templates/allclasses-frame.vm
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/jxr/trunk/src/main/resources/templates/index.vm
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/jxr/trunk/src/main/resources/templates/overview-frame.vm
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/jxr/trunk/src/main/resources/templates/overview-summary.vm
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/jxr/trunk/src/main/resources/templates/package-frame.vm
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/jxr/trunk/src/main/resources/templates/package-summary.vm
------------------------------------------------------------------------------
svn:eol-style = native
Modified: maven/jxr/trunk/src/test/java/org/apache/maven/jxr/JavaCodeTransformTest.java
URL: http://svn.apache.org/viewvc/maven/jxr/trunk/src/test/java/org/apache/maven/jxr/JavaCodeTransformTest.java?view=diff&rev=514410&r1=514409&r2=514410
==============================================================================
--- maven/jxr/trunk/src/test/java/org/apache/maven/jxr/JavaCodeTransformTest.java (original)
+++ maven/jxr/trunk/src/test/java/org/apache/maven/jxr/JavaCodeTransformTest.java Sun Mar 4 07:34:12 2007
@@ -1,67 +1,67 @@
-package org.apache.maven.jxr;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import junit.framework.TestCase;
-import org.apache.maven.jxr.pacman.PackageManager;
-import org.apache.maven.jxr.pacman.FileManager;
-
-import java.io.File;
-import java.util.Locale;
-
-public class JavaCodeTransformTest
- extends TestCase
-{
-
- private JavaCodeTransform codeTransform;
-
- private PackageManager packageManager;
-
- protected void setUp()
- throws Exception
- {
- super.setUp();
- packageManager = new PackageManager( new DummyLog(), new FileManager() );
- codeTransform = new JavaCodeTransform( packageManager );
- }
-
- public void testTransform()
- throws Exception
- {
- File sourceFile = new File( System.getProperty( "user.dir" )
- + "/src/test/java/org/apache/maven/jxr/JavaCodeTransformTest.java" );
- assertTrue( sourceFile.exists() );
-
- codeTransform.transform( sourceFile.getAbsolutePath(), System.getProperty( "user.dir" )
- + "/target/JavaCodeTransformTest.html", Locale.ENGLISH, "ISO-8859-1", "ISO-8859-1", "", "" );
- assertTrue( new File( System.getProperty( "user.dir" ), "/target/JavaCodeTransformTest.html" ).exists() );
- }
-
- public void testTransformWithEmptyClassFile()
- throws Exception
- {
- File sourceFile = new File( System.getProperty( "user.dir" ) + "/src/test/resources/EmptyClass.java" );
- assertTrue( sourceFile.exists() );
-
- codeTransform.transform( sourceFile.getAbsolutePath(), System.getProperty( "user.dir" )
- + "/target/EmptyClass.html", Locale.ENGLISH, "ISO-8859-1", "ISO-8859-1", "", "" );
- assertTrue( new File( System.getProperty( "user.dir" ), "/target/EmptyClass.html" ).exists() );
- }
-}
+package org.apache.maven.jxr;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import junit.framework.TestCase;
+import org.apache.maven.jxr.pacman.PackageManager;
+import org.apache.maven.jxr.pacman.FileManager;
+
+import java.io.File;
+import java.util.Locale;
+
+public class JavaCodeTransformTest
+ extends TestCase
+{
+
+ private JavaCodeTransform codeTransform;
+
+ private PackageManager packageManager;
+
+ protected void setUp()
+ throws Exception
+ {
+ super.setUp();
+ packageManager = new PackageManager( new DummyLog(), new FileManager() );
+ codeTransform = new JavaCodeTransform( packageManager );
+ }
+
+ public void testTransform()
+ throws Exception
+ {
+ File sourceFile = new File( System.getProperty( "user.dir" )
+ + "/src/test/java/org/apache/maven/jxr/JavaCodeTransformTest.java" );
+ assertTrue( sourceFile.exists() );
+
+ codeTransform.transform( sourceFile.getAbsolutePath(), System.getProperty( "user.dir" )
+ + "/target/JavaCodeTransformTest.html", Locale.ENGLISH, "ISO-8859-1", "ISO-8859-1", "", "" );
+ assertTrue( new File( System.getProperty( "user.dir" ), "/target/JavaCodeTransformTest.html" ).exists() );
+ }
+
+ public void testTransformWithEmptyClassFile()
+ throws Exception
+ {
+ File sourceFile = new File( System.getProperty( "user.dir" ) + "/src/test/resources/EmptyClass.java" );
+ assertTrue( sourceFile.exists() );
+
+ codeTransform.transform( sourceFile.getAbsolutePath(), System.getProperty( "user.dir" )
+ + "/target/EmptyClass.html", Locale.ENGLISH, "ISO-8859-1", "ISO-8859-1", "", "" );
+ assertTrue( new File( System.getProperty( "user.dir" ), "/target/EmptyClass.html" ).exists() );
+ }
+}
Propchange: maven/jxr/trunk/src/test/java/org/apache/maven/jxr/JavaCodeTransformTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Modified: maven/jxr/trunk/src/test/java/org/apache/maven/jxr/JxrBeanTest.java
URL: http://svn.apache.org/viewvc/maven/jxr/trunk/src/test/java/org/apache/maven/jxr/JxrBeanTest.java?view=diff&rev=514410&r1=514409&r2=514410
==============================================================================
--- maven/jxr/trunk/src/test/java/org/apache/maven/jxr/JxrBeanTest.java (original)
+++ maven/jxr/trunk/src/test/java/org/apache/maven/jxr/JxrBeanTest.java Sun Mar 4 07:34:12 2007
@@ -1,51 +1,51 @@
-package org.apache.maven.jxr;
-
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-
-import junit.framework.TestCase;
-
-import java.util.Collections;
-
-public class JxrBeanTest
- extends TestCase
-{
-
- private JXR jxrBean;
-
- protected void setUp()
- throws Exception
- {
- super.setUp();
- jxrBean = new JXR();
- jxrBean.setDest( System.getProperty( "basedir" ) + "/target" );
- jxrBean.setInputEncoding( "ISO-8859-1" );
- jxrBean.setOutputEncoding( "ISO-8859-1" );
- jxrBean.setJavadocLinkDir( "" );
- jxrBean.setLog( new DummyLog() );
- }
-
- public void testXref()
- throws Exception
- {
- jxrBean.xref( Collections.singletonList( System.getProperty( "basedir" ) + "/src/test/java" ), "templates",
- "title", "title", "copyright" );
- }
-
-}
+package org.apache.maven.jxr;
+
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+import junit.framework.TestCase;
+
+import java.util.Collections;
+
+public class JxrBeanTest
+ extends TestCase
+{
+
+ private JXR jxrBean;
+
+ protected void setUp()
+ throws Exception
+ {
+ super.setUp();
+ jxrBean = new JXR();
+ jxrBean.setDest( System.getProperty( "basedir" ) + "/target" );
+ jxrBean.setInputEncoding( "ISO-8859-1" );
+ jxrBean.setOutputEncoding( "ISO-8859-1" );
+ jxrBean.setJavadocLinkDir( "" );
+ jxrBean.setLog( new DummyLog() );
+ }
+
+ public void testXref()
+ throws Exception
+ {
+ jxrBean.xref( Collections.singletonList( System.getProperty( "basedir" ) + "/src/test/java" ), "templates",
+ "title", "title", "copyright" );
+ }
+
+}
Propchange: maven/jxr/trunk/src/test/java/org/apache/maven/jxr/JxrBeanTest.java
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: maven/jxr/trunk/src/test/java/org/apache/maven/jxr/package-info.java
------------------------------------------------------------------------------
svn:eol-style = native