maven-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hbout...@apache.org
Subject svn commit: r864078 [7/25] - in /websites/production/maven/content/ref/3-LATEST: ./ apache-maven/ apidocs/org/apache/maven/ apidocs/org/apache/maven/artifact/metadata/ apidocs/org/apache/maven/classrealm/ apidocs/org/apache/maven/configuration/ apidocs...
Date Sun, 02 Jun 2013 08:01:33 GMT
Modified: websites/production/maven/content/ref/3-LATEST/maven-compat/testapidocs/org/apache/maven/repository/metadata/DefaultGraphConflictResolverTest.html
==============================================================================
--- websites/production/maven/content/ref/3-LATEST/maven-compat/testapidocs/org/apache/maven/repository/metadata/DefaultGraphConflictResolverTest.html (original)
+++ websites/production/maven/content/ref/3-LATEST/maven-compat/testapidocs/org/apache/maven/repository/metadata/DefaultGraphConflictResolverTest.html Sun Jun  2 08:01:23 2013
@@ -102,7 +102,7 @@ Class DefaultGraphConflictResolverTest</
 </DL>
 <HR>
 <DL>
-<DT><PRE>public class <A HREF="../../../../../src-html/org/apache/maven/repository/metadata/DefaultGraphConflictResolverTest.html#line.18"><B>DefaultGraphConflictResolverTest</B></A><DT>extends <A HREF="http://plexus.codehaus.org/plexus-containers/plexus-container-default/apidocs/org/codehaus/plexus/PlexusTestCase.html?is-external=true" title="class or interface in org.codehaus.plexus">PlexusTestCase</A></DL>
+<DT><PRE>public class <A HREF="../../../../../src-html/org/apache/maven/repository/metadata/DefaultGraphConflictResolverTest.html#line.33"><B>DefaultGraphConflictResolverTest</B></A><DT>extends <A HREF="http://plexus.codehaus.org/plexus-containers/plexus-container-default/apidocs/org/codehaus/plexus/PlexusTestCase.html?is-external=true" title="class or interface in org.codehaus.plexus">PlexusTestCase</A></DL>
 </PRE>
 
 <P>
@@ -223,7 +223,7 @@ Class DefaultGraphConflictResolverTest</
 <A NAME="DefaultGraphConflictResolverTest()"><!-- --></A><H3>
 DefaultGraphConflictResolverTest</H3>
 <PRE>
-public <A HREF="../../../../../src-html/org/apache/maven/repository/metadata/DefaultGraphConflictResolverTest.html#line.18"><B>DefaultGraphConflictResolverTest</B></A>()</PRE>
+public <A HREF="../../../../../src-html/org/apache/maven/repository/metadata/DefaultGraphConflictResolverTest.html#line.33"><B>DefaultGraphConflictResolverTest</B></A>()</PRE>
 <DL>
 </DL>
 
@@ -240,7 +240,7 @@ public <A HREF="../../../../../src-html/
 <A NAME="setUp()"><!-- --></A><H3>
 setUp</H3>
 <PRE>
-protected void <A HREF="../../../../../src-html/org/apache/maven/repository/metadata/DefaultGraphConflictResolverTest.html#line.33"><B>setUp</B></A>()
+protected void <A HREF="../../../../../src-html/org/apache/maven/repository/metadata/DefaultGraphConflictResolverTest.html#line.48"><B>setUp</B></A>()
               throws <A HREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</A></PRE>
 <DL>
 <DD><DL>
@@ -257,7 +257,7 @@ protected void <A HREF="../../../../../s
 <A NAME="testCompileResolution()"><!-- --></A><H3>
 testCompileResolution</H3>
 <PRE>
-public void <A HREF="../../../../../src-html/org/apache/maven/repository/metadata/DefaultGraphConflictResolverTest.html#line.64"><B>testCompileResolution</B></A>()
+public void <A HREF="../../../../../src-html/org/apache/maven/repository/metadata/DefaultGraphConflictResolverTest.html#line.79"><B>testCompileResolution</B></A>()
                            throws <A HREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</A></PRE>
 <DL>
 <DD><DL>
@@ -271,7 +271,7 @@ public void <A HREF="../../../../../src-
 <A NAME="testRuntimeResolution()"><!-- --></A><H3>
 testRuntimeResolution</H3>
 <PRE>
-public void <A HREF="../../../../../src-html/org/apache/maven/repository/metadata/DefaultGraphConflictResolverTest.html#line.89"><B>testRuntimeResolution</B></A>()
+public void <A HREF="../../../../../src-html/org/apache/maven/repository/metadata/DefaultGraphConflictResolverTest.html#line.104"><B>testRuntimeResolution</B></A>()
                            throws <A HREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</A></PRE>
 <DL>
 <DD><DL>
@@ -285,7 +285,7 @@ public void <A HREF="../../../../../src-
 <A NAME="testTestResolution()"><!-- --></A><H3>
 testTestResolution</H3>
 <PRE>
-public void <A HREF="../../../../../src-html/org/apache/maven/repository/metadata/DefaultGraphConflictResolverTest.html#line.113"><B>testTestResolution</B></A>()
+public void <A HREF="../../../../../src-html/org/apache/maven/repository/metadata/DefaultGraphConflictResolverTest.html#line.128"><B>testTestResolution</B></A>()
                         throws <A HREF="http://docs.oracle.com/javase/1.5.0/docs/api/java/lang/Exception.html?is-external=true" title="class or interface in java.lang">Exception</A></PRE>
 <DL>
 <DD><DL>

Modified: websites/production/maven/content/ref/3-LATEST/maven-compat/testapidocs/src-html/org/apache/maven/artifact/transform/TransformationManagerTest.html
==============================================================================
--- websites/production/maven/content/ref/3-LATEST/maven-compat/testapidocs/src-html/org/apache/maven/artifact/transform/TransformationManagerTest.html (original)
+++ websites/production/maven/content/ref/3-LATEST/maven-compat/testapidocs/src-html/org/apache/maven/artifact/transform/TransformationManagerTest.html Sun Jun  2 08:01:23 2013
@@ -3,35 +3,50 @@
 <PRE>
 <FONT color="green">001</FONT>    package org.apache.maven.artifact.transform;<a name="line.1"></a>
 <FONT color="green">002</FONT>    <a name="line.2"></a>
-<FONT color="green">003</FONT>    import java.util.List;<a name="line.3"></a>
-<FONT color="green">004</FONT>    <a name="line.4"></a>
-<FONT color="green">005</FONT>    import org.apache.maven.repository.legacy.resolver.transform.ArtifactTransformationManager;<a name="line.5"></a>
-<FONT color="green">006</FONT>    import org.apache.maven.repository.legacy.resolver.transform.LatestArtifactTransformation;<a name="line.6"></a>
-<FONT color="green">007</FONT>    import org.apache.maven.repository.legacy.resolver.transform.ReleaseArtifactTransformation;<a name="line.7"></a>
-<FONT color="green">008</FONT>    import org.apache.maven.repository.legacy.resolver.transform.SnapshotTransformation;<a name="line.8"></a>
-<FONT color="green">009</FONT>    import org.codehaus.plexus.PlexusTestCase;<a name="line.9"></a>
-<FONT color="green">010</FONT>    <a name="line.10"></a>
-<FONT color="green">011</FONT>    /** @author Jason van Zyl */<a name="line.11"></a>
-<FONT color="green">012</FONT>    public class TransformationManagerTest<a name="line.12"></a>
-<FONT color="green">013</FONT>        extends PlexusTestCase<a name="line.13"></a>
-<FONT color="green">014</FONT>    {<a name="line.14"></a>
-<FONT color="green">015</FONT>        public void testTransformationManager()<a name="line.15"></a>
-<FONT color="green">016</FONT>            throws Exception<a name="line.16"></a>
-<FONT color="green">017</FONT>        {<a name="line.17"></a>
-<FONT color="green">018</FONT>            ArtifactTransformationManager tm = (ArtifactTransformationManager) lookup( ArtifactTransformationManager.class );<a name="line.18"></a>
+<FONT color="green">003</FONT>    /*<a name="line.3"></a>
+<FONT color="green">004</FONT>     * Licensed to the Apache Software Foundation (ASF) under one or more contributor license<a name="line.4"></a>
+<FONT color="green">005</FONT>     * agreements. See the NOTICE file distributed with this work for additional information regarding<a name="line.5"></a>
+<FONT color="green">006</FONT>     * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the<a name="line.6"></a>
+<FONT color="green">007</FONT>     * "License"); you may not use this file except in compliance with the License. You may obtain a<a name="line.7"></a>
+<FONT color="green">008</FONT>     * copy of the License at<a name="line.8"></a>
+<FONT color="green">009</FONT>     *<a name="line.9"></a>
+<FONT color="green">010</FONT>     * http://www.apache.org/licenses/LICENSE-2.0<a name="line.10"></a>
+<FONT color="green">011</FONT>     *<a name="line.11"></a>
+<FONT color="green">012</FONT>     * Unless required by applicable law or agreed to in writing, software distributed under the License<a name="line.12"></a>
+<FONT color="green">013</FONT>     * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express<a name="line.13"></a>
+<FONT color="green">014</FONT>     * or implied. See the License for the specific language governing permissions and limitations under<a name="line.14"></a>
+<FONT color="green">015</FONT>     * the License.<a name="line.15"></a>
+<FONT color="green">016</FONT>     */<a name="line.16"></a>
+<FONT color="green">017</FONT>    <a name="line.17"></a>
+<FONT color="green">018</FONT>    import java.util.List;<a name="line.18"></a>
 <FONT color="green">019</FONT>    <a name="line.19"></a>
-<FONT color="green">020</FONT>            List tms = tm.getArtifactTransformations();<a name="line.20"></a>
-<FONT color="green">021</FONT>    <a name="line.21"></a>
-<FONT color="green">022</FONT>            assertEquals( 3, tms.size() );<a name="line.22"></a>
-<FONT color="green">023</FONT>    <a name="line.23"></a>
-<FONT color="green">024</FONT>            assertTrue( "We expected the release transformation and got " + tms.get(0), tms.get(0) instanceof ReleaseArtifactTransformation );<a name="line.24"></a>
+<FONT color="green">020</FONT>    import org.apache.maven.repository.legacy.resolver.transform.ArtifactTransformationManager;<a name="line.20"></a>
+<FONT color="green">021</FONT>    import org.apache.maven.repository.legacy.resolver.transform.LatestArtifactTransformation;<a name="line.21"></a>
+<FONT color="green">022</FONT>    import org.apache.maven.repository.legacy.resolver.transform.ReleaseArtifactTransformation;<a name="line.22"></a>
+<FONT color="green">023</FONT>    import org.apache.maven.repository.legacy.resolver.transform.SnapshotTransformation;<a name="line.23"></a>
+<FONT color="green">024</FONT>    import org.codehaus.plexus.PlexusTestCase;<a name="line.24"></a>
 <FONT color="green">025</FONT>    <a name="line.25"></a>
-<FONT color="green">026</FONT>            assertTrue( "We expected the latest transformation and got " + tms.get(1), tms.get(1) instanceof LatestArtifactTransformation );<a name="line.26"></a>
-<FONT color="green">027</FONT>    <a name="line.27"></a>
-<FONT color="green">028</FONT>            assertTrue( "We expected the snapshot transformation and got " + tms.get(2), tms.get(2) instanceof SnapshotTransformation );<a name="line.28"></a>
-<FONT color="green">029</FONT>        }<a name="line.29"></a>
-<FONT color="green">030</FONT>    <a name="line.30"></a>
-<FONT color="green">031</FONT>    }<a name="line.31"></a>
+<FONT color="green">026</FONT>    /** @author Jason van Zyl */<a name="line.26"></a>
+<FONT color="green">027</FONT>    public class TransformationManagerTest<a name="line.27"></a>
+<FONT color="green">028</FONT>        extends PlexusTestCase<a name="line.28"></a>
+<FONT color="green">029</FONT>    {<a name="line.29"></a>
+<FONT color="green">030</FONT>        public void testTransformationManager()<a name="line.30"></a>
+<FONT color="green">031</FONT>            throws Exception<a name="line.31"></a>
+<FONT color="green">032</FONT>        {<a name="line.32"></a>
+<FONT color="green">033</FONT>            ArtifactTransformationManager tm = (ArtifactTransformationManager) lookup( ArtifactTransformationManager.class );<a name="line.33"></a>
+<FONT color="green">034</FONT>    <a name="line.34"></a>
+<FONT color="green">035</FONT>            List tms = tm.getArtifactTransformations();<a name="line.35"></a>
+<FONT color="green">036</FONT>    <a name="line.36"></a>
+<FONT color="green">037</FONT>            assertEquals( 3, tms.size() );<a name="line.37"></a>
+<FONT color="green">038</FONT>    <a name="line.38"></a>
+<FONT color="green">039</FONT>            assertTrue( "We expected the release transformation and got " + tms.get(0), tms.get(0) instanceof ReleaseArtifactTransformation );<a name="line.39"></a>
+<FONT color="green">040</FONT>    <a name="line.40"></a>
+<FONT color="green">041</FONT>            assertTrue( "We expected the latest transformation and got " + tms.get(1), tms.get(1) instanceof LatestArtifactTransformation );<a name="line.41"></a>
+<FONT color="green">042</FONT>    <a name="line.42"></a>
+<FONT color="green">043</FONT>            assertTrue( "We expected the snapshot transformation and got " + tms.get(2), tms.get(2) instanceof SnapshotTransformation );<a name="line.43"></a>
+<FONT color="green">044</FONT>        }<a name="line.44"></a>
+<FONT color="green">045</FONT>    <a name="line.45"></a>
+<FONT color="green">046</FONT>    }<a name="line.46"></a>
 
 
 

Modified: websites/production/maven/content/ref/3-LATEST/maven-compat/testapidocs/src-html/org/apache/maven/project/TestArtifactResolver.html
==============================================================================
--- websites/production/maven/content/ref/3-LATEST/maven-compat/testapidocs/src-html/org/apache/maven/project/TestArtifactResolver.html (original)
+++ websites/production/maven/content/ref/3-LATEST/maven-compat/testapidocs/src-html/org/apache/maven/project/TestArtifactResolver.html Sun Jun  2 08:01:23 2013
@@ -3,19 +3,34 @@
 <PRE>
 <FONT color="green">001</FONT>    package org.apache.maven.project;<a name="line.1"></a>
 <FONT color="green">002</FONT>    <a name="line.2"></a>
-<FONT color="green">003</FONT>    import org.apache.maven.artifact.metadata.ArtifactMetadataSource;<a name="line.3"></a>
-<FONT color="green">004</FONT>    import org.apache.maven.artifact.resolver.ArtifactResolver;<a name="line.4"></a>
-<FONT color="green">005</FONT>    import org.apache.maven.artifact.resolver.DefaultArtifactResolver;<a name="line.5"></a>
-<FONT color="green">006</FONT>    import org.codehaus.plexus.component.annotations.Component;<a name="line.6"></a>
-<FONT color="green">007</FONT>    import org.codehaus.plexus.component.annotations.Requirement;<a name="line.7"></a>
-<FONT color="green">008</FONT>    <a name="line.8"></a>
-<FONT color="green">009</FONT>    @Component(role=ArtifactResolver.class,hint="classpath")<a name="line.9"></a>
-<FONT color="green">010</FONT>    public class TestArtifactResolver<a name="line.10"></a>
-<FONT color="green">011</FONT>        extends DefaultArtifactResolver<a name="line.11"></a>
-<FONT color="green">012</FONT>    {<a name="line.12"></a>
-<FONT color="green">013</FONT>        @Requirement(hint="classpath")<a name="line.13"></a>
-<FONT color="green">014</FONT>        private ArtifactMetadataSource source;<a name="line.14"></a>
-<FONT color="green">015</FONT>    }<a name="line.15"></a>
+<FONT color="green">003</FONT>    /*<a name="line.3"></a>
+<FONT color="green">004</FONT>     * Licensed to the Apache Software Foundation (ASF) under one or more contributor license<a name="line.4"></a>
+<FONT color="green">005</FONT>     * agreements. See the NOTICE file distributed with this work for additional information regarding<a name="line.5"></a>
+<FONT color="green">006</FONT>     * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the<a name="line.6"></a>
+<FONT color="green">007</FONT>     * "License"); you may not use this file except in compliance with the License. You may obtain a<a name="line.7"></a>
+<FONT color="green">008</FONT>     * copy of the License at<a name="line.8"></a>
+<FONT color="green">009</FONT>     *<a name="line.9"></a>
+<FONT color="green">010</FONT>     * http://www.apache.org/licenses/LICENSE-2.0<a name="line.10"></a>
+<FONT color="green">011</FONT>     *<a name="line.11"></a>
+<FONT color="green">012</FONT>     * Unless required by applicable law or agreed to in writing, software distributed under the License<a name="line.12"></a>
+<FONT color="green">013</FONT>     * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express<a name="line.13"></a>
+<FONT color="green">014</FONT>     * or implied. See the License for the specific language governing permissions and limitations under<a name="line.14"></a>
+<FONT color="green">015</FONT>     * the License.<a name="line.15"></a>
+<FONT color="green">016</FONT>     */<a name="line.16"></a>
+<FONT color="green">017</FONT>    <a name="line.17"></a>
+<FONT color="green">018</FONT>    import org.apache.maven.artifact.metadata.ArtifactMetadataSource;<a name="line.18"></a>
+<FONT color="green">019</FONT>    import org.apache.maven.artifact.resolver.ArtifactResolver;<a name="line.19"></a>
+<FONT color="green">020</FONT>    import org.apache.maven.artifact.resolver.DefaultArtifactResolver;<a name="line.20"></a>
+<FONT color="green">021</FONT>    import org.codehaus.plexus.component.annotations.Component;<a name="line.21"></a>
+<FONT color="green">022</FONT>    import org.codehaus.plexus.component.annotations.Requirement;<a name="line.22"></a>
+<FONT color="green">023</FONT>    <a name="line.23"></a>
+<FONT color="green">024</FONT>    @Component(role=ArtifactResolver.class,hint="classpath")<a name="line.24"></a>
+<FONT color="green">025</FONT>    public class TestArtifactResolver<a name="line.25"></a>
+<FONT color="green">026</FONT>        extends DefaultArtifactResolver<a name="line.26"></a>
+<FONT color="green">027</FONT>    {<a name="line.27"></a>
+<FONT color="green">028</FONT>        @Requirement(hint="classpath")<a name="line.28"></a>
+<FONT color="green">029</FONT>        private ArtifactMetadataSource source;<a name="line.29"></a>
+<FONT color="green">030</FONT>    }<a name="line.30"></a>
 
 
 

Modified: websites/production/maven/content/ref/3-LATEST/maven-compat/testapidocs/src-html/org/apache/maven/project/TestMavenRepositorySystem.html
==============================================================================
--- websites/production/maven/content/ref/3-LATEST/maven-compat/testapidocs/src-html/org/apache/maven/project/TestMavenRepositorySystem.html (original)
+++ websites/production/maven/content/ref/3-LATEST/maven-compat/testapidocs/src-html/org/apache/maven/project/TestMavenRepositorySystem.html Sun Jun  2 08:01:23 2013
@@ -3,19 +3,34 @@
 <PRE>
 <FONT color="green">001</FONT>    package org.apache.maven.project;<a name="line.1"></a>
 <FONT color="green">002</FONT>    <a name="line.2"></a>
-<FONT color="green">003</FONT>    import org.apache.maven.artifact.resolver.ArtifactResolver;<a name="line.3"></a>
-<FONT color="green">004</FONT>    import org.apache.maven.repository.RepositorySystem;<a name="line.4"></a>
-<FONT color="green">005</FONT>    import org.apache.maven.repository.legacy.LegacyRepositorySystem;<a name="line.5"></a>
-<FONT color="green">006</FONT>    import org.codehaus.plexus.component.annotations.Component;<a name="line.6"></a>
-<FONT color="green">007</FONT>    import org.codehaus.plexus.component.annotations.Requirement;<a name="line.7"></a>
-<FONT color="green">008</FONT>    <a name="line.8"></a>
-<FONT color="green">009</FONT>    @Component(role = RepositorySystem.class, hint = "classpath")<a name="line.9"></a>
-<FONT color="green">010</FONT>    public class TestMavenRepositorySystem<a name="line.10"></a>
-<FONT color="green">011</FONT>        extends LegacyRepositorySystem<a name="line.11"></a>
-<FONT color="green">012</FONT>    {<a name="line.12"></a>
-<FONT color="green">013</FONT>        @Requirement(hint="classpath")<a name="line.13"></a>
-<FONT color="green">014</FONT>        private ArtifactResolver artifactResolver;<a name="line.14"></a>
-<FONT color="green">015</FONT>    }<a name="line.15"></a>
+<FONT color="green">003</FONT>    /*<a name="line.3"></a>
+<FONT color="green">004</FONT>     * Licensed to the Apache Software Foundation (ASF) under one or more contributor license<a name="line.4"></a>
+<FONT color="green">005</FONT>     * agreements. See the NOTICE file distributed with this work for additional information regarding<a name="line.5"></a>
+<FONT color="green">006</FONT>     * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the<a name="line.6"></a>
+<FONT color="green">007</FONT>     * "License"); you may not use this file except in compliance with the License. You may obtain a<a name="line.7"></a>
+<FONT color="green">008</FONT>     * copy of the License at<a name="line.8"></a>
+<FONT color="green">009</FONT>     *<a name="line.9"></a>
+<FONT color="green">010</FONT>     * http://www.apache.org/licenses/LICENSE-2.0<a name="line.10"></a>
+<FONT color="green">011</FONT>     *<a name="line.11"></a>
+<FONT color="green">012</FONT>     * Unless required by applicable law or agreed to in writing, software distributed under the License<a name="line.12"></a>
+<FONT color="green">013</FONT>     * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express<a name="line.13"></a>
+<FONT color="green">014</FONT>     * or implied. See the License for the specific language governing permissions and limitations under<a name="line.14"></a>
+<FONT color="green">015</FONT>     * the License.<a name="line.15"></a>
+<FONT color="green">016</FONT>     */<a name="line.16"></a>
+<FONT color="green">017</FONT>    <a name="line.17"></a>
+<FONT color="green">018</FONT>    import org.apache.maven.artifact.resolver.ArtifactResolver;<a name="line.18"></a>
+<FONT color="green">019</FONT>    import org.apache.maven.repository.RepositorySystem;<a name="line.19"></a>
+<FONT color="green">020</FONT>    import org.apache.maven.repository.legacy.LegacyRepositorySystem;<a name="line.20"></a>
+<FONT color="green">021</FONT>    import org.codehaus.plexus.component.annotations.Component;<a name="line.21"></a>
+<FONT color="green">022</FONT>    import org.codehaus.plexus.component.annotations.Requirement;<a name="line.22"></a>
+<FONT color="green">023</FONT>    <a name="line.23"></a>
+<FONT color="green">024</FONT>    @Component(role = RepositorySystem.class, hint = "classpath")<a name="line.24"></a>
+<FONT color="green">025</FONT>    public class TestMavenRepositorySystem<a name="line.25"></a>
+<FONT color="green">026</FONT>        extends LegacyRepositorySystem<a name="line.26"></a>
+<FONT color="green">027</FONT>    {<a name="line.27"></a>
+<FONT color="green">028</FONT>        @Requirement(hint="classpath")<a name="line.28"></a>
+<FONT color="green">029</FONT>        private ArtifactResolver artifactResolver;<a name="line.29"></a>
+<FONT color="green">030</FONT>    }<a name="line.30"></a>
 
 
 

Modified: websites/production/maven/content/ref/3-LATEST/maven-compat/testapidocs/src-html/org/apache/maven/project/TestProjectBuilder.html
==============================================================================
--- websites/production/maven/content/ref/3-LATEST/maven-compat/testapidocs/src-html/org/apache/maven/project/TestProjectBuilder.html (original)
+++ websites/production/maven/content/ref/3-LATEST/maven-compat/testapidocs/src-html/org/apache/maven/project/TestProjectBuilder.html Sun Jun  2 08:01:23 2013
@@ -1,62 +1,74 @@
 <HTML>
 <BODY BGCOLOR="white">
 <PRE>
-<FONT color="green">001</FONT>    /**<a name="line.1"></a>
-<FONT color="green">002</FONT>     * <a name="line.2"></a>
-<FONT color="green">003</FONT>     */<a name="line.3"></a>
-<FONT color="green">004</FONT>    package org.apache.maven.project;<a name="line.4"></a>
-<FONT color="green">005</FONT>    <a name="line.5"></a>
-<FONT color="green">006</FONT>    import java.io.File;<a name="line.6"></a>
-<FONT color="green">007</FONT>    import java.io.FileNotFoundException;<a name="line.7"></a>
-<FONT color="green">008</FONT>    import java.util.Collections;<a name="line.8"></a>
-<FONT color="green">009</FONT>    <a name="line.9"></a>
-<FONT color="green">010</FONT>    import org.apache.maven.artifact.Artifact;<a name="line.10"></a>
-<FONT color="green">011</FONT>    import org.apache.maven.artifact.repository.ArtifactRepository;<a name="line.11"></a>
-<FONT color="green">012</FONT>    import org.codehaus.plexus.component.annotations.Component;<a name="line.12"></a>
-<FONT color="green">013</FONT>    <a name="line.13"></a>
-<FONT color="green">014</FONT>    @Component(role=ProjectBuilder.class,hint="classpath")<a name="line.14"></a>
-<FONT color="green">015</FONT>    public class TestProjectBuilder<a name="line.15"></a>
-<FONT color="green">016</FONT>        extends DefaultProjectBuilder<a name="line.16"></a>
-<FONT color="green">017</FONT>    {    <a name="line.17"></a>
-<FONT color="green">018</FONT>        <a name="line.18"></a>
-<FONT color="green">019</FONT>        @Override<a name="line.19"></a>
-<FONT color="green">020</FONT>        public ProjectBuildingResult build( Artifact artifact, ProjectBuildingRequest request )<a name="line.20"></a>
-<FONT color="green">021</FONT>            throws ProjectBuildingException<a name="line.21"></a>
-<FONT color="green">022</FONT>        {                       <a name="line.22"></a>
-<FONT color="green">023</FONT>            if ( "maven-test".equals( artifact.getGroupId() ) )<a name="line.23"></a>
-<FONT color="green">024</FONT>            {<a name="line.24"></a>
-<FONT color="green">025</FONT>                String scope = artifact.getArtifactId().substring( "scope-".length() );<a name="line.25"></a>
-<FONT color="green">026</FONT>                <a name="line.26"></a>
-<FONT color="green">027</FONT>                try<a name="line.27"></a>
-<FONT color="green">028</FONT>                {<a name="line.28"></a>
-<FONT color="green">029</FONT>                    artifact.setFile( ProjectClasspathTest.getFileForClasspathResource( ProjectClasspathTest.dir + "transitive-" + scope + "-dep.xml" ) );<a name="line.29"></a>
-<FONT color="green">030</FONT>                }<a name="line.30"></a>
-<FONT color="green">031</FONT>                catch ( FileNotFoundException e )<a name="line.31"></a>
-<FONT color="green">032</FONT>                {<a name="line.32"></a>
-<FONT color="green">033</FONT>                    throw new IllegalStateException( "Missing test POM for " + artifact );<a name="line.33"></a>
-<FONT color="green">034</FONT>                }<a name="line.34"></a>
-<FONT color="green">035</FONT>            }<a name="line.35"></a>
-<FONT color="green">036</FONT>            if ( artifact.getFile() == null )<a name="line.36"></a>
-<FONT color="green">037</FONT>            {<a name="line.37"></a>
-<FONT color="green">038</FONT>                MavenProject project = new MavenProject();<a name="line.38"></a>
-<FONT color="green">039</FONT>                project.setArtifact( artifact );<a name="line.39"></a>
-<FONT color="green">040</FONT>                return new DefaultProjectBuildingResult( project, null, null );<a name="line.40"></a>
-<FONT color="green">041</FONT>            }<a name="line.41"></a>
-<FONT color="green">042</FONT>            return build( artifact.getFile(), request );<a name="line.42"></a>
-<FONT color="green">043</FONT>        }<a name="line.43"></a>
-<FONT color="green">044</FONT>    <a name="line.44"></a>
-<FONT color="green">045</FONT>        @Override<a name="line.45"></a>
-<FONT color="green">046</FONT>        public ProjectBuildingResult build( File pomFile, ProjectBuildingRequest configuration )<a name="line.46"></a>
-<FONT color="green">047</FONT>            throws ProjectBuildingException<a name="line.47"></a>
-<FONT color="green">048</FONT>        {<a name="line.48"></a>
-<FONT color="green">049</FONT>            ProjectBuildingResult result = super.build( pomFile, configuration );<a name="line.49"></a>
-<FONT color="green">050</FONT>    <a name="line.50"></a>
-<FONT color="green">051</FONT>            result.getProject().setRemoteArtifactRepositories( Collections.&lt;ArtifactRepository&gt; emptyList() );<a name="line.51"></a>
-<FONT color="green">052</FONT>    <a name="line.52"></a>
-<FONT color="green">053</FONT>            return result;<a name="line.53"></a>
-<FONT color="green">054</FONT>        }<a name="line.54"></a>
-<FONT color="green">055</FONT>    <a name="line.55"></a>
-<FONT color="green">056</FONT>    }<a name="line.56"></a>
+<FONT color="green">001</FONT>    package org.apache.maven.project;<a name="line.1"></a>
+<FONT color="green">002</FONT>    <a name="line.2"></a>
+<FONT color="green">003</FONT>    /*<a name="line.3"></a>
+<FONT color="green">004</FONT>     * Licensed to the Apache Software Foundation (ASF) under one or more contributor license<a name="line.4"></a>
+<FONT color="green">005</FONT>     * agreements. See the NOTICE file distributed with this work for additional information regarding<a name="line.5"></a>
+<FONT color="green">006</FONT>     * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the<a name="line.6"></a>
+<FONT color="green">007</FONT>     * "License"); you may not use this file except in compliance with the License. You may obtain a<a name="line.7"></a>
+<FONT color="green">008</FONT>     * copy of the License at<a name="line.8"></a>
+<FONT color="green">009</FONT>     *<a name="line.9"></a>
+<FONT color="green">010</FONT>     * http://www.apache.org/licenses/LICENSE-2.0<a name="line.10"></a>
+<FONT color="green">011</FONT>     *<a name="line.11"></a>
+<FONT color="green">012</FONT>     * Unless required by applicable law or agreed to in writing, software distributed under the License<a name="line.12"></a>
+<FONT color="green">013</FONT>     * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express<a name="line.13"></a>
+<FONT color="green">014</FONT>     * or implied. See the License for the specific language governing permissions and limitations under<a name="line.14"></a>
+<FONT color="green">015</FONT>     * the License.<a name="line.15"></a>
+<FONT color="green">016</FONT>     */<a name="line.16"></a>
+<FONT color="green">017</FONT>    <a name="line.17"></a>
+<FONT color="green">018</FONT>    import java.io.File;<a name="line.18"></a>
+<FONT color="green">019</FONT>    import java.io.FileNotFoundException;<a name="line.19"></a>
+<FONT color="green">020</FONT>    import java.util.Collections;<a name="line.20"></a>
+<FONT color="green">021</FONT>    <a name="line.21"></a>
+<FONT color="green">022</FONT>    import org.apache.maven.artifact.Artifact;<a name="line.22"></a>
+<FONT color="green">023</FONT>    import org.apache.maven.artifact.repository.ArtifactRepository;<a name="line.23"></a>
+<FONT color="green">024</FONT>    import org.codehaus.plexus.component.annotations.Component;<a name="line.24"></a>
+<FONT color="green">025</FONT>    <a name="line.25"></a>
+<FONT color="green">026</FONT>    @Component(role=ProjectBuilder.class,hint="classpath")<a name="line.26"></a>
+<FONT color="green">027</FONT>    public class TestProjectBuilder<a name="line.27"></a>
+<FONT color="green">028</FONT>        extends DefaultProjectBuilder<a name="line.28"></a>
+<FONT color="green">029</FONT>    {    <a name="line.29"></a>
+<FONT color="green">030</FONT>        <a name="line.30"></a>
+<FONT color="green">031</FONT>        @Override<a name="line.31"></a>
+<FONT color="green">032</FONT>        public ProjectBuildingResult build( Artifact artifact, ProjectBuildingRequest request )<a name="line.32"></a>
+<FONT color="green">033</FONT>            throws ProjectBuildingException<a name="line.33"></a>
+<FONT color="green">034</FONT>        {                       <a name="line.34"></a>
+<FONT color="green">035</FONT>            if ( "maven-test".equals( artifact.getGroupId() ) )<a name="line.35"></a>
+<FONT color="green">036</FONT>            {<a name="line.36"></a>
+<FONT color="green">037</FONT>                String scope = artifact.getArtifactId().substring( "scope-".length() );<a name="line.37"></a>
+<FONT color="green">038</FONT>                <a name="line.38"></a>
+<FONT color="green">039</FONT>                try<a name="line.39"></a>
+<FONT color="green">040</FONT>                {<a name="line.40"></a>
+<FONT color="green">041</FONT>                    artifact.setFile( ProjectClasspathTest.getFileForClasspathResource( ProjectClasspathTest.dir + "transitive-" + scope + "-dep.xml" ) );<a name="line.41"></a>
+<FONT color="green">042</FONT>                }<a name="line.42"></a>
+<FONT color="green">043</FONT>                catch ( FileNotFoundException e )<a name="line.43"></a>
+<FONT color="green">044</FONT>                {<a name="line.44"></a>
+<FONT color="green">045</FONT>                    throw new IllegalStateException( "Missing test POM for " + artifact );<a name="line.45"></a>
+<FONT color="green">046</FONT>                }<a name="line.46"></a>
+<FONT color="green">047</FONT>            }<a name="line.47"></a>
+<FONT color="green">048</FONT>            if ( artifact.getFile() == null )<a name="line.48"></a>
+<FONT color="green">049</FONT>            {<a name="line.49"></a>
+<FONT color="green">050</FONT>                MavenProject project = new MavenProject();<a name="line.50"></a>
+<FONT color="green">051</FONT>                project.setArtifact( artifact );<a name="line.51"></a>
+<FONT color="green">052</FONT>                return new DefaultProjectBuildingResult( project, null, null );<a name="line.52"></a>
+<FONT color="green">053</FONT>            }<a name="line.53"></a>
+<FONT color="green">054</FONT>            return build( artifact.getFile(), request );<a name="line.54"></a>
+<FONT color="green">055</FONT>        }<a name="line.55"></a>
+<FONT color="green">056</FONT>    <a name="line.56"></a>
+<FONT color="green">057</FONT>        @Override<a name="line.57"></a>
+<FONT color="green">058</FONT>        public ProjectBuildingResult build( File pomFile, ProjectBuildingRequest configuration )<a name="line.58"></a>
+<FONT color="green">059</FONT>            throws ProjectBuildingException<a name="line.59"></a>
+<FONT color="green">060</FONT>        {<a name="line.60"></a>
+<FONT color="green">061</FONT>            ProjectBuildingResult result = super.build( pomFile, configuration );<a name="line.61"></a>
+<FONT color="green">062</FONT>    <a name="line.62"></a>
+<FONT color="green">063</FONT>            result.getProject().setRemoteArtifactRepositories( Collections.&lt;ArtifactRepository&gt; emptyList() );<a name="line.63"></a>
+<FONT color="green">064</FONT>    <a name="line.64"></a>
+<FONT color="green">065</FONT>            return result;<a name="line.65"></a>
+<FONT color="green">066</FONT>        }<a name="line.66"></a>
+<FONT color="green">067</FONT>    <a name="line.67"></a>
+<FONT color="green">068</FONT>    }<a name="line.68"></a>
 
 
 

Modified: websites/production/maven/content/ref/3-LATEST/maven-compat/testapidocs/src-html/org/apache/maven/repository/metadata/DefaultClasspathTransformationTest.html
==============================================================================
--- websites/production/maven/content/ref/3-LATEST/maven-compat/testapidocs/src-html/org/apache/maven/repository/metadata/DefaultClasspathTransformationTest.html (original)
+++ websites/production/maven/content/ref/3-LATEST/maven-compat/testapidocs/src-html/org/apache/maven/repository/metadata/DefaultClasspathTransformationTest.html Sun Jun  2 08:01:23 2013
@@ -3,109 +3,124 @@
 <PRE>
 <FONT color="green">001</FONT>    package org.apache.maven.repository.metadata;<a name="line.1"></a>
 <FONT color="green">002</FONT>    <a name="line.2"></a>
-<FONT color="green">003</FONT>    import org.apache.maven.artifact.ArtifactScopeEnum;<a name="line.3"></a>
-<FONT color="green">004</FONT>    import org.apache.maven.repository.metadata.ArtifactMetadata;<a name="line.4"></a>
-<FONT color="green">005</FONT>    import org.apache.maven.repository.metadata.ClasspathContainer;<a name="line.5"></a>
-<FONT color="green">006</FONT>    import org.apache.maven.repository.metadata.ClasspathTransformation;<a name="line.6"></a>
-<FONT color="green">007</FONT>    import org.apache.maven.repository.metadata.MetadataGraph;<a name="line.7"></a>
-<FONT color="green">008</FONT>    import org.apache.maven.repository.metadata.MetadataGraphEdge;<a name="line.8"></a>
-<FONT color="green">009</FONT>    import org.apache.maven.repository.metadata.MetadataGraphVertex;<a name="line.9"></a>
-<FONT color="green">010</FONT>    import org.codehaus.plexus.PlexusTestCase;<a name="line.10"></a>
-<FONT color="green">011</FONT>    <a name="line.11"></a>
-<FONT color="green">012</FONT>    /**<a name="line.12"></a>
-<FONT color="green">013</FONT>     *<a name="line.13"></a>
-<FONT color="green">014</FONT>     * @author &lt;a href="mailto:oleg@codehaus.org"&gt;Oleg Gusakov&lt;/a&gt;<a name="line.14"></a>
-<FONT color="green">015</FONT>     * <a name="line.15"></a>
+<FONT color="green">003</FONT>    /*<a name="line.3"></a>
+<FONT color="green">004</FONT>     * Licensed to the Apache Software Foundation (ASF) under one or more contributor license<a name="line.4"></a>
+<FONT color="green">005</FONT>     * agreements. See the NOTICE file distributed with this work for additional information regarding<a name="line.5"></a>
+<FONT color="green">006</FONT>     * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the<a name="line.6"></a>
+<FONT color="green">007</FONT>     * "License"); you may not use this file except in compliance with the License. You may obtain a<a name="line.7"></a>
+<FONT color="green">008</FONT>     * copy of the License at<a name="line.8"></a>
+<FONT color="green">009</FONT>     *<a name="line.9"></a>
+<FONT color="green">010</FONT>     * http://www.apache.org/licenses/LICENSE-2.0<a name="line.10"></a>
+<FONT color="green">011</FONT>     *<a name="line.11"></a>
+<FONT color="green">012</FONT>     * Unless required by applicable law or agreed to in writing, software distributed under the License<a name="line.12"></a>
+<FONT color="green">013</FONT>     * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express<a name="line.13"></a>
+<FONT color="green">014</FONT>     * or implied. See the License for the specific language governing permissions and limitations under<a name="line.14"></a>
+<FONT color="green">015</FONT>     * the License.<a name="line.15"></a>
 <FONT color="green">016</FONT>     */<a name="line.16"></a>
 <FONT color="green">017</FONT>    <a name="line.17"></a>
-<FONT color="green">018</FONT>    public class DefaultClasspathTransformationTest<a name="line.18"></a>
-<FONT color="green">019</FONT>    extends PlexusTestCase<a name="line.19"></a>
-<FONT color="green">020</FONT>    {<a name="line.20"></a>
-<FONT color="green">021</FONT>            ClasspathTransformation transform;<a name="line.21"></a>
-<FONT color="green">022</FONT>    <a name="line.22"></a>
-<FONT color="green">023</FONT>            MetadataGraph graph;<a name="line.23"></a>
-<FONT color="green">024</FONT>    <a name="line.24"></a>
-<FONT color="green">025</FONT>            MetadataGraphVertex v1;<a name="line.25"></a>
-<FONT color="green">026</FONT>            MetadataGraphVertex v2;<a name="line.26"></a>
-<FONT color="green">027</FONT>            MetadataGraphVertex v3;<a name="line.27"></a>
-<FONT color="green">028</FONT>            MetadataGraphVertex v4;<a name="line.28"></a>
-<FONT color="green">029</FONT>        //------------------------------------------------------------------------------------------<a name="line.29"></a>
-<FONT color="green">030</FONT>        @Override<a name="line.30"></a>
-<FONT color="green">031</FONT>            protected void setUp() throws Exception<a name="line.31"></a>
-<FONT color="green">032</FONT>            {<a name="line.32"></a>
-<FONT color="green">033</FONT>                    super.setUp();<a name="line.33"></a>
-<FONT color="green">034</FONT>                    transform = (ClasspathTransformation) lookup( ClasspathTransformation.ROLE, "default" );<a name="line.34"></a>
-<FONT color="green">035</FONT>            <a name="line.35"></a>
-<FONT color="green">036</FONT>            graph = new MetadataGraph( 4, 3 );<a name="line.36"></a>
-<FONT color="green">037</FONT>            /*<a name="line.37"></a>
-<FONT color="green">038</FONT>             *       v2<a name="line.38"></a>
-<FONT color="green">039</FONT>             *   v1&lt;<a name="line.39"></a>
-<FONT color="green">040</FONT>             *       v3-v4<a name="line.40"></a>
-<FONT color="green">041</FONT>             * <a name="line.41"></a>
-<FONT color="green">042</FONT>             */<a name="line.42"></a>
-<FONT color="green">043</FONT>            v1 = graph.addVertex(new ArtifactMetadata("g","a1","1.0"));<a name="line.43"></a>
-<FONT color="green">044</FONT>            graph.setEntry(v1);<a name="line.44"></a>
-<FONT color="green">045</FONT>            v2 = graph.addVertex(new ArtifactMetadata("g","a2","1.0"));<a name="line.45"></a>
-<FONT color="green">046</FONT>            v3 = graph.addVertex(new ArtifactMetadata("g","a3","1.0"));<a name="line.46"></a>
-<FONT color="green">047</FONT>            v4 = graph.addVertex(new ArtifactMetadata("g","a4","1.0"));<a name="line.47"></a>
-<FONT color="green">048</FONT>            <a name="line.48"></a>
-<FONT color="green">049</FONT>            // v1--&gt;v2<a name="line.49"></a>
-<FONT color="green">050</FONT>            graph.addEdge(v1, v2, new MetadataGraphEdge( "1.1", true, null, null, 2, 1 ) );<a name="line.50"></a>
-<FONT color="green">051</FONT>            graph.addEdge(v1, v2, new MetadataGraphEdge( "1.2", true, null, null, 2, 2 ) );<a name="line.51"></a>
-<FONT color="green">052</FONT>            <a name="line.52"></a>
-<FONT color="green">053</FONT>            // v1--&gt;v3<a name="line.53"></a>
-<FONT color="green">054</FONT>            graph.addEdge(v1, v3, new MetadataGraphEdge( "1.1", true, null, null, 2, 1 ) );<a name="line.54"></a>
-<FONT color="green">055</FONT>            graph.addEdge(v1, v3, new MetadataGraphEdge( "1.2", true, null, null, 4, 2 ) );<a name="line.55"></a>
-<FONT color="green">056</FONT>            <a name="line.56"></a>
-<FONT color="green">057</FONT>            // v3--&gt;v4<a name="line.57"></a>
-<FONT color="green">058</FONT>            graph.addEdge(v3, v4, new MetadataGraphEdge( "1.1", true, ArtifactScopeEnum.runtime, null, 2, 2 ) );<a name="line.58"></a>
-<FONT color="green">059</FONT>            graph.addEdge(v3, v4, new MetadataGraphEdge( "1.2", true, ArtifactScopeEnum.test, null, 2, 2 ) );<a name="line.59"></a>
-<FONT color="green">060</FONT>            }<a name="line.60"></a>
-<FONT color="green">061</FONT>        //------------------------------------------------------------------------------------------<a name="line.61"></a>
-<FONT color="green">062</FONT>        public void testCompileClasspathTransform()<a name="line.62"></a>
-<FONT color="green">063</FONT>        throws Exception<a name="line.63"></a>
-<FONT color="green">064</FONT>        {<a name="line.64"></a>
-<FONT color="green">065</FONT>            ClasspathContainer res;<a name="line.65"></a>
-<FONT color="green">066</FONT>            <a name="line.66"></a>
-<FONT color="green">067</FONT>            res = transform.transform( graph, ArtifactScopeEnum.compile, false );<a name="line.67"></a>
-<FONT color="green">068</FONT>    <a name="line.68"></a>
-<FONT color="green">069</FONT>            assertNotNull("null classpath container after compile transform", res );<a name="line.69"></a>
-<FONT color="green">070</FONT>            assertNotNull("null classpath after compile transform", res.getClasspath() );<a name="line.70"></a>
-<FONT color="green">071</FONT>            assertEquals("compile classpath should have 3 entries", 3, res.getClasspath().size() );<a name="line.71"></a>
-<FONT color="green">072</FONT>        }<a name="line.72"></a>
-<FONT color="green">073</FONT>        //------------------------------------------------------------------------------------------<a name="line.73"></a>
-<FONT color="green">074</FONT>        public void testRuntimeClasspathTransform()<a name="line.74"></a>
-<FONT color="green">075</FONT>        throws Exception<a name="line.75"></a>
-<FONT color="green">076</FONT>        {<a name="line.76"></a>
-<FONT color="green">077</FONT>            ClasspathContainer res;<a name="line.77"></a>
-<FONT color="green">078</FONT>            <a name="line.78"></a>
-<FONT color="green">079</FONT>            res = transform.transform( graph, ArtifactScopeEnum.runtime, false );<a name="line.79"></a>
-<FONT color="green">080</FONT>    <a name="line.80"></a>
-<FONT color="green">081</FONT>            assertNotNull("null classpath container after runtime transform", res );<a name="line.81"></a>
-<FONT color="green">082</FONT>            assertNotNull("null classpath after runtime transform", res.getClasspath() );<a name="line.82"></a>
-<FONT color="green">083</FONT>            assertEquals("runtime classpath should have 4 entries", 4, res.getClasspath().size() );<a name="line.83"></a>
-<FONT color="green">084</FONT>            <a name="line.84"></a>
-<FONT color="green">085</FONT>            ArtifactMetadata md = res.getClasspath().get(3);<a name="line.85"></a>
-<FONT color="green">086</FONT>            assertEquals("runtime artifact version should be 1.1", "1.1", md.getVersion() );<a name="line.86"></a>
+<FONT color="green">018</FONT>    import org.apache.maven.artifact.ArtifactScopeEnum;<a name="line.18"></a>
+<FONT color="green">019</FONT>    import org.apache.maven.repository.metadata.ArtifactMetadata;<a name="line.19"></a>
+<FONT color="green">020</FONT>    import org.apache.maven.repository.metadata.ClasspathContainer;<a name="line.20"></a>
+<FONT color="green">021</FONT>    import org.apache.maven.repository.metadata.ClasspathTransformation;<a name="line.21"></a>
+<FONT color="green">022</FONT>    import org.apache.maven.repository.metadata.MetadataGraph;<a name="line.22"></a>
+<FONT color="green">023</FONT>    import org.apache.maven.repository.metadata.MetadataGraphEdge;<a name="line.23"></a>
+<FONT color="green">024</FONT>    import org.apache.maven.repository.metadata.MetadataGraphVertex;<a name="line.24"></a>
+<FONT color="green">025</FONT>    import org.codehaus.plexus.PlexusTestCase;<a name="line.25"></a>
+<FONT color="green">026</FONT>    <a name="line.26"></a>
+<FONT color="green">027</FONT>    /**<a name="line.27"></a>
+<FONT color="green">028</FONT>     *<a name="line.28"></a>
+<FONT color="green">029</FONT>     * @author &lt;a href="mailto:oleg@codehaus.org"&gt;Oleg Gusakov&lt;/a&gt;<a name="line.29"></a>
+<FONT color="green">030</FONT>     * <a name="line.30"></a>
+<FONT color="green">031</FONT>     */<a name="line.31"></a>
+<FONT color="green">032</FONT>    <a name="line.32"></a>
+<FONT color="green">033</FONT>    public class DefaultClasspathTransformationTest<a name="line.33"></a>
+<FONT color="green">034</FONT>    extends PlexusTestCase<a name="line.34"></a>
+<FONT color="green">035</FONT>    {<a name="line.35"></a>
+<FONT color="green">036</FONT>            ClasspathTransformation transform;<a name="line.36"></a>
+<FONT color="green">037</FONT>    <a name="line.37"></a>
+<FONT color="green">038</FONT>            MetadataGraph graph;<a name="line.38"></a>
+<FONT color="green">039</FONT>    <a name="line.39"></a>
+<FONT color="green">040</FONT>            MetadataGraphVertex v1;<a name="line.40"></a>
+<FONT color="green">041</FONT>            MetadataGraphVertex v2;<a name="line.41"></a>
+<FONT color="green">042</FONT>            MetadataGraphVertex v3;<a name="line.42"></a>
+<FONT color="green">043</FONT>            MetadataGraphVertex v4;<a name="line.43"></a>
+<FONT color="green">044</FONT>        //------------------------------------------------------------------------------------------<a name="line.44"></a>
+<FONT color="green">045</FONT>        @Override<a name="line.45"></a>
+<FONT color="green">046</FONT>            protected void setUp() throws Exception<a name="line.46"></a>
+<FONT color="green">047</FONT>            {<a name="line.47"></a>
+<FONT color="green">048</FONT>                    super.setUp();<a name="line.48"></a>
+<FONT color="green">049</FONT>                    transform = (ClasspathTransformation) lookup( ClasspathTransformation.ROLE, "default" );<a name="line.49"></a>
+<FONT color="green">050</FONT>            <a name="line.50"></a>
+<FONT color="green">051</FONT>            graph = new MetadataGraph( 4, 3 );<a name="line.51"></a>
+<FONT color="green">052</FONT>            /*<a name="line.52"></a>
+<FONT color="green">053</FONT>             *       v2<a name="line.53"></a>
+<FONT color="green">054</FONT>             *   v1&lt;<a name="line.54"></a>
+<FONT color="green">055</FONT>             *       v3-v4<a name="line.55"></a>
+<FONT color="green">056</FONT>             * <a name="line.56"></a>
+<FONT color="green">057</FONT>             */<a name="line.57"></a>
+<FONT color="green">058</FONT>            v1 = graph.addVertex(new ArtifactMetadata("g","a1","1.0"));<a name="line.58"></a>
+<FONT color="green">059</FONT>            graph.setEntry(v1);<a name="line.59"></a>
+<FONT color="green">060</FONT>            v2 = graph.addVertex(new ArtifactMetadata("g","a2","1.0"));<a name="line.60"></a>
+<FONT color="green">061</FONT>            v3 = graph.addVertex(new ArtifactMetadata("g","a3","1.0"));<a name="line.61"></a>
+<FONT color="green">062</FONT>            v4 = graph.addVertex(new ArtifactMetadata("g","a4","1.0"));<a name="line.62"></a>
+<FONT color="green">063</FONT>            <a name="line.63"></a>
+<FONT color="green">064</FONT>            // v1--&gt;v2<a name="line.64"></a>
+<FONT color="green">065</FONT>            graph.addEdge(v1, v2, new MetadataGraphEdge( "1.1", true, null, null, 2, 1 ) );<a name="line.65"></a>
+<FONT color="green">066</FONT>            graph.addEdge(v1, v2, new MetadataGraphEdge( "1.2", true, null, null, 2, 2 ) );<a name="line.66"></a>
+<FONT color="green">067</FONT>            <a name="line.67"></a>
+<FONT color="green">068</FONT>            // v1--&gt;v3<a name="line.68"></a>
+<FONT color="green">069</FONT>            graph.addEdge(v1, v3, new MetadataGraphEdge( "1.1", true, null, null, 2, 1 ) );<a name="line.69"></a>
+<FONT color="green">070</FONT>            graph.addEdge(v1, v3, new MetadataGraphEdge( "1.2", true, null, null, 4, 2 ) );<a name="line.70"></a>
+<FONT color="green">071</FONT>            <a name="line.71"></a>
+<FONT color="green">072</FONT>            // v3--&gt;v4<a name="line.72"></a>
+<FONT color="green">073</FONT>            graph.addEdge(v3, v4, new MetadataGraphEdge( "1.1", true, ArtifactScopeEnum.runtime, null, 2, 2 ) );<a name="line.73"></a>
+<FONT color="green">074</FONT>            graph.addEdge(v3, v4, new MetadataGraphEdge( "1.2", true, ArtifactScopeEnum.test, null, 2, 2 ) );<a name="line.74"></a>
+<FONT color="green">075</FONT>            }<a name="line.75"></a>
+<FONT color="green">076</FONT>        //------------------------------------------------------------------------------------------<a name="line.76"></a>
+<FONT color="green">077</FONT>        public void testCompileClasspathTransform()<a name="line.77"></a>
+<FONT color="green">078</FONT>        throws Exception<a name="line.78"></a>
+<FONT color="green">079</FONT>        {<a name="line.79"></a>
+<FONT color="green">080</FONT>            ClasspathContainer res;<a name="line.80"></a>
+<FONT color="green">081</FONT>            <a name="line.81"></a>
+<FONT color="green">082</FONT>            res = transform.transform( graph, ArtifactScopeEnum.compile, false );<a name="line.82"></a>
+<FONT color="green">083</FONT>    <a name="line.83"></a>
+<FONT color="green">084</FONT>            assertNotNull("null classpath container after compile transform", res );<a name="line.84"></a>
+<FONT color="green">085</FONT>            assertNotNull("null classpath after compile transform", res.getClasspath() );<a name="line.85"></a>
+<FONT color="green">086</FONT>            assertEquals("compile classpath should have 3 entries", 3, res.getClasspath().size() );<a name="line.86"></a>
 <FONT color="green">087</FONT>        }<a name="line.87"></a>
 <FONT color="green">088</FONT>        //------------------------------------------------------------------------------------------<a name="line.88"></a>
-<FONT color="green">089</FONT>        public void testTestClasspathTransform()<a name="line.89"></a>
+<FONT color="green">089</FONT>        public void testRuntimeClasspathTransform()<a name="line.89"></a>
 <FONT color="green">090</FONT>        throws Exception<a name="line.90"></a>
 <FONT color="green">091</FONT>        {<a name="line.91"></a>
 <FONT color="green">092</FONT>            ClasspathContainer res;<a name="line.92"></a>
 <FONT color="green">093</FONT>            <a name="line.93"></a>
-<FONT color="green">094</FONT>            res = transform.transform( graph, ArtifactScopeEnum.test, false );<a name="line.94"></a>
+<FONT color="green">094</FONT>            res = transform.transform( graph, ArtifactScopeEnum.runtime, false );<a name="line.94"></a>
 <FONT color="green">095</FONT>    <a name="line.95"></a>
 <FONT color="green">096</FONT>            assertNotNull("null classpath container after runtime transform", res );<a name="line.96"></a>
 <FONT color="green">097</FONT>            assertNotNull("null classpath after runtime transform", res.getClasspath() );<a name="line.97"></a>
 <FONT color="green">098</FONT>            assertEquals("runtime classpath should have 4 entries", 4, res.getClasspath().size() );<a name="line.98"></a>
 <FONT color="green">099</FONT>            <a name="line.99"></a>
 <FONT color="green">100</FONT>            ArtifactMetadata md = res.getClasspath().get(3);<a name="line.100"></a>
-<FONT color="green">101</FONT>            assertEquals("test artifact version should be 1.2", "1.2", md.getVersion() );<a name="line.101"></a>
+<FONT color="green">101</FONT>            assertEquals("runtime artifact version should be 1.1", "1.1", md.getVersion() );<a name="line.101"></a>
 <FONT color="green">102</FONT>        }<a name="line.102"></a>
 <FONT color="green">103</FONT>        //------------------------------------------------------------------------------------------<a name="line.103"></a>
-<FONT color="green">104</FONT>        //------------------------------------------------------------------------------------------<a name="line.104"></a>
-<FONT color="green">105</FONT>    }<a name="line.105"></a>
+<FONT color="green">104</FONT>        public void testTestClasspathTransform()<a name="line.104"></a>
+<FONT color="green">105</FONT>        throws Exception<a name="line.105"></a>
+<FONT color="green">106</FONT>        {<a name="line.106"></a>
+<FONT color="green">107</FONT>            ClasspathContainer res;<a name="line.107"></a>
+<FONT color="green">108</FONT>            <a name="line.108"></a>
+<FONT color="green">109</FONT>            res = transform.transform( graph, ArtifactScopeEnum.test, false );<a name="line.109"></a>
+<FONT color="green">110</FONT>    <a name="line.110"></a>
+<FONT color="green">111</FONT>            assertNotNull("null classpath container after runtime transform", res );<a name="line.111"></a>
+<FONT color="green">112</FONT>            assertNotNull("null classpath after runtime transform", res.getClasspath() );<a name="line.112"></a>
+<FONT color="green">113</FONT>            assertEquals("runtime classpath should have 4 entries", 4, res.getClasspath().size() );<a name="line.113"></a>
+<FONT color="green">114</FONT>            <a name="line.114"></a>
+<FONT color="green">115</FONT>            ArtifactMetadata md = res.getClasspath().get(3);<a name="line.115"></a>
+<FONT color="green">116</FONT>            assertEquals("test artifact version should be 1.2", "1.2", md.getVersion() );<a name="line.116"></a>
+<FONT color="green">117</FONT>        }<a name="line.117"></a>
+<FONT color="green">118</FONT>        //------------------------------------------------------------------------------------------<a name="line.118"></a>
+<FONT color="green">119</FONT>        //------------------------------------------------------------------------------------------<a name="line.119"></a>
+<FONT color="green">120</FONT>    }<a name="line.120"></a>
 
 
 

Modified: websites/production/maven/content/ref/3-LATEST/maven-compat/testapidocs/src-html/org/apache/maven/repository/metadata/DefaultGraphConflictResolutionPolicyTest.html
==============================================================================
--- websites/production/maven/content/ref/3-LATEST/maven-compat/testapidocs/src-html/org/apache/maven/repository/metadata/DefaultGraphConflictResolutionPolicyTest.html (original)
+++ websites/production/maven/content/ref/3-LATEST/maven-compat/testapidocs/src-html/org/apache/maven/repository/metadata/DefaultGraphConflictResolutionPolicyTest.html Sun Jun  2 08:01:23 2013
@@ -3,48 +3,63 @@
 <PRE>
 <FONT color="green">001</FONT>    package org.apache.maven.repository.metadata;<a name="line.1"></a>
 <FONT color="green">002</FONT>    <a name="line.2"></a>
-<FONT color="green">003</FONT>    import org.apache.maven.repository.metadata.GraphConflictResolutionPolicy;<a name="line.3"></a>
-<FONT color="green">004</FONT>    import org.apache.maven.repository.metadata.MetadataGraphEdge;<a name="line.4"></a>
-<FONT color="green">005</FONT>    import org.codehaus.plexus.PlexusTestCase;<a name="line.5"></a>
-<FONT color="green">006</FONT>    <a name="line.6"></a>
-<FONT color="green">007</FONT>    /**<a name="line.7"></a>
-<FONT color="green">008</FONT>     *<a name="line.8"></a>
-<FONT color="green">009</FONT>     * @author &lt;a href="mailto:oleg@codehaus.org"&gt;Oleg Gusakov&lt;/a&gt;<a name="line.9"></a>
-<FONT color="green">010</FONT>     * <a name="line.10"></a>
-<FONT color="green">011</FONT>     */<a name="line.11"></a>
-<FONT color="green">012</FONT>    <a name="line.12"></a>
-<FONT color="green">013</FONT>    public class DefaultGraphConflictResolutionPolicyTest<a name="line.13"></a>
-<FONT color="green">014</FONT>    extends PlexusTestCase<a name="line.14"></a>
-<FONT color="green">015</FONT>    {<a name="line.15"></a>
-<FONT color="green">016</FONT>            GraphConflictResolutionPolicy policy;<a name="line.16"></a>
-<FONT color="green">017</FONT>            MetadataGraphEdge e1;<a name="line.17"></a>
-<FONT color="green">018</FONT>            MetadataGraphEdge e2;<a name="line.18"></a>
-<FONT color="green">019</FONT>            MetadataGraphEdge e3;<a name="line.19"></a>
-<FONT color="green">020</FONT>        //------------------------------------------------------------------------------------------<a name="line.20"></a>
-<FONT color="green">021</FONT>        @Override<a name="line.21"></a>
-<FONT color="green">022</FONT>            protected void setUp() throws Exception<a name="line.22"></a>
-<FONT color="green">023</FONT>            {<a name="line.23"></a>
-<FONT color="green">024</FONT>                    super.setUp();<a name="line.24"></a>
-<FONT color="green">025</FONT>            policy = (GraphConflictResolutionPolicy) lookup( GraphConflictResolutionPolicy.ROLE, "default" );<a name="line.25"></a>
-<FONT color="green">026</FONT>            e1 = new MetadataGraphEdge( "1.1", true, null, null, 2, 1 );<a name="line.26"></a>
-<FONT color="green">027</FONT>            e2 = new MetadataGraphEdge( "1.2", true, null, null, 3, 2 );<a name="line.27"></a>
-<FONT color="green">028</FONT>            e3 = new MetadataGraphEdge( "1.2", true, null, null, 2, 3 );<a name="line.28"></a>
-<FONT color="green">029</FONT>            }<a name="line.29"></a>
-<FONT color="green">030</FONT>        //------------------------------------------------------------------------------------------<a name="line.30"></a>
-<FONT color="green">031</FONT>        public void testDefaultPolicy()<a name="line.31"></a>
-<FONT color="green">032</FONT>            throws Exception<a name="line.32"></a>
-<FONT color="green">033</FONT>        {<a name="line.33"></a>
-<FONT color="green">034</FONT>            MetadataGraphEdge res;<a name="line.34"></a>
-<FONT color="green">035</FONT>            <a name="line.35"></a>
-<FONT color="green">036</FONT>            res = policy.apply( e1, e2 );<a name="line.36"></a>
-<FONT color="green">037</FONT>            assertEquals( "Wrong depth edge selected", "1.1", res.getVersion() );<a name="line.37"></a>
-<FONT color="green">038</FONT>            <a name="line.38"></a>
-<FONT color="green">039</FONT>            res = policy.apply( e1, e3 );<a name="line.39"></a>
-<FONT color="green">040</FONT>            assertEquals( "Wrong version edge selected", "1.2", res.getVersion() );<a name="line.40"></a>
-<FONT color="green">041</FONT>        }<a name="line.41"></a>
-<FONT color="green">042</FONT>        //------------------------------------------------------------------------------------------<a name="line.42"></a>
-<FONT color="green">043</FONT>        //------------------------------------------------------------------------------------------<a name="line.43"></a>
-<FONT color="green">044</FONT>    }<a name="line.44"></a>
+<FONT color="green">003</FONT>    /*<a name="line.3"></a>
+<FONT color="green">004</FONT>     * Licensed to the Apache Software Foundation (ASF) under one or more contributor license<a name="line.4"></a>
+<FONT color="green">005</FONT>     * agreements. See the NOTICE file distributed with this work for additional information regarding<a name="line.5"></a>
+<FONT color="green">006</FONT>     * copyright ownership. The ASF licenses this file to you under the Apache License, Version 2.0 (the<a name="line.6"></a>
+<FONT color="green">007</FONT>     * "License"); you may not use this file except in compliance with the License. You may obtain a<a name="line.7"></a>
+<FONT color="green">008</FONT>     * copy of the License at<a name="line.8"></a>
+<FONT color="green">009</FONT>     *<a name="line.9"></a>
+<FONT color="green">010</FONT>     * http://www.apache.org/licenses/LICENSE-2.0<a name="line.10"></a>
+<FONT color="green">011</FONT>     *<a name="line.11"></a>
+<FONT color="green">012</FONT>     * Unless required by applicable law or agreed to in writing, software distributed under the License<a name="line.12"></a>
+<FONT color="green">013</FONT>     * is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express<a name="line.13"></a>
+<FONT color="green">014</FONT>     * or implied. See the License for the specific language governing permissions and limitations under<a name="line.14"></a>
+<FONT color="green">015</FONT>     * the License.<a name="line.15"></a>
+<FONT color="green">016</FONT>     */<a name="line.16"></a>
+<FONT color="green">017</FONT>    <a name="line.17"></a>
+<FONT color="green">018</FONT>    import org.apache.maven.repository.metadata.GraphConflictResolutionPolicy;<a name="line.18"></a>
+<FONT color="green">019</FONT>    import org.apache.maven.repository.metadata.MetadataGraphEdge;<a name="line.19"></a>
+<FONT color="green">020</FONT>    import org.codehaus.plexus.PlexusTestCase;<a name="line.20"></a>
+<FONT color="green">021</FONT>    <a name="line.21"></a>
+<FONT color="green">022</FONT>    /**<a name="line.22"></a>
+<FONT color="green">023</FONT>     *<a name="line.23"></a>
+<FONT color="green">024</FONT>     * @author &lt;a href="mailto:oleg@codehaus.org"&gt;Oleg Gusakov&lt;/a&gt;<a name="line.24"></a>
+<FONT color="green">025</FONT>     * <a name="line.25"></a>
+<FONT color="green">026</FONT>     */<a name="line.26"></a>
+<FONT color="green">027</FONT>    <a name="line.27"></a>
+<FONT color="green">028</FONT>    public class DefaultGraphConflictResolutionPolicyTest<a name="line.28"></a>
+<FONT color="green">029</FONT>    extends PlexusTestCase<a name="line.29"></a>
+<FONT color="green">030</FONT>    {<a name="line.30"></a>
+<FONT color="green">031</FONT>            GraphConflictResolutionPolicy policy;<a name="line.31"></a>
+<FONT color="green">032</FONT>            MetadataGraphEdge e1;<a name="line.32"></a>
+<FONT color="green">033</FONT>            MetadataGraphEdge e2;<a name="line.33"></a>
+<FONT color="green">034</FONT>            MetadataGraphEdge e3;<a name="line.34"></a>
+<FONT color="green">035</FONT>        //------------------------------------------------------------------------------------------<a name="line.35"></a>
+<FONT color="green">036</FONT>        @Override<a name="line.36"></a>
+<FONT color="green">037</FONT>            protected void setUp() throws Exception<a name="line.37"></a>
+<FONT color="green">038</FONT>            {<a name="line.38"></a>
+<FONT color="green">039</FONT>                    super.setUp();<a name="line.39"></a>
+<FONT color="green">040</FONT>            policy = (GraphConflictResolutionPolicy) lookup( GraphConflictResolutionPolicy.ROLE, "default" );<a name="line.40"></a>
+<FONT color="green">041</FONT>            e1 = new MetadataGraphEdge( "1.1", true, null, null, 2, 1 );<a name="line.41"></a>
+<FONT color="green">042</FONT>            e2 = new MetadataGraphEdge( "1.2", true, null, null, 3, 2 );<a name="line.42"></a>
+<FONT color="green">043</FONT>            e3 = new MetadataGraphEdge( "1.2", true, null, null, 2, 3 );<a name="line.43"></a>
+<FONT color="green">044</FONT>            }<a name="line.44"></a>
+<FONT color="green">045</FONT>        //------------------------------------------------------------------------------------------<a name="line.45"></a>
+<FONT color="green">046</FONT>        public void testDefaultPolicy()<a name="line.46"></a>
+<FONT color="green">047</FONT>            throws Exception<a name="line.47"></a>
+<FONT color="green">048</FONT>        {<a name="line.48"></a>
+<FONT color="green">049</FONT>            MetadataGraphEdge res;<a name="line.49"></a>
+<FONT color="green">050</FONT>            <a name="line.50"></a>
+<FONT color="green">051</FONT>            res = policy.apply( e1, e2 );<a name="line.51"></a>
+<FONT color="green">052</FONT>            assertEquals( "Wrong depth edge selected", "1.1", res.getVersion() );<a name="line.52"></a>
+<FONT color="green">053</FONT>            <a name="line.53"></a>
+<FONT color="green">054</FONT>            res = policy.apply( e1, e3 );<a name="line.54"></a>
+<FONT color="green">055</FONT>            assertEquals( "Wrong version edge selected", "1.2", res.getVersion() );<a name="line.55"></a>
+<FONT color="green">056</FONT>        }<a name="line.56"></a>
+<FONT color="green">057</FONT>        //------------------------------------------------------------------------------------------<a name="line.57"></a>
+<FONT color="green">058</FONT>        //------------------------------------------------------------------------------------------<a name="line.58"></a>
+<FONT color="green">059</FONT>    }<a name="line.59"></a>
 
 
 



Mime
View raw message