Author: markh
Date: Mon Nov 2 13:13:50 2009
New Revision: 831890
URL: http://svn.apache.org/viewvc?rev=831890&view=rev
Log:
Updated site for 1.0-alpha-2
Added:
maven/shared/trunk/maven-runtime/src/site/apt/examples/introspecting-a-url.apt
Modified:
maven/shared/trunk/maven-runtime/src/changes/changes.xml
maven/shared/trunk/maven-runtime/src/site/apt/index.apt
maven/shared/trunk/maven-runtime/src/site/site.xml
Modified: maven/shared/trunk/maven-runtime/src/changes/changes.xml
URL:
http://svn.apache.org/viewvc/maven/shared/trunk/maven-runtime/src/changes/changes.xml?rev=831890&r1=831889&r2=831890&view=diff
==============================================================================
--- maven/shared/trunk/maven-runtime/src/changes/changes.xml (original)
+++ maven/shared/trunk/maven-runtime/src/changes/changes.xml Mon Nov 2
13:13:50 2009
@@ -27,8 +27,8 @@
</properties>
<body>
<release version="1.0-alpha-2" date="In SVN">
- <action type="fix" dev="markh">Added url to parsing exception
messages</action>
<action type="add" dev="markh">Added support for introspecting URLs to
MavenRuntime</action>
+ <action type="fix" dev="markh">Added url to parsing exception
messages</action>
</release>
<release version="1.0-alpha-1" date="2008-05-29"/>
</body>
Added:
maven/shared/trunk/maven-runtime/src/site/apt/examples/introspecting-a-url.apt
URL:
http://svn.apache.org/viewvc/maven/shared/trunk/maven-runtime/src/site/apt/examples/introspecting-a-url.apt?rev=831890&view=auto
==============================================================================
---
maven/shared/trunk/maven-runtime/src/site/apt/examples/introspecting-a-url.apt
(added)
+++
maven/shared/trunk/maven-runtime/src/site/apt/examples/introspecting-a-url.apt
Mon Nov 2 13:13:50 2009
@@ -0,0 +1,53 @@
+ ------
+ Introspecting a URL
+ ------
+ Mark Hobson
+ <[email protected]>
+ ------
+ 2 Nov 2009
+ ------
+
+
+Introspecting a URL
+
+ Maven Runtime can introspect a URL to obtain metadata for each Maven project
accessible within it.
+
+* Using project properties
+
+ To obtain a list of
+
<<<{{{../apidocs/org/apache/maven/shared/runtime/MavenProjectProperties.html}MavenProjectProperties}}>>>
+ instances for each Maven project accessible within a specified URL:
+
+---
+/**
+ * @component
+ */
+private MavenRuntime runtime;
+
+public void processProjects() throws MavenRuntimeException
+{
+ List<MavenProjectProperties> projects = runtime.getProjectsProperties(
myUrl );
+
+ // process projects
+}
+---
+
+* Using project XML
+
+ To obtain a list of
+
<<<{{{http://maven.apache.org/ref/current/maven-project/apidocs/org/apache/maven/project/MavenProject.html}MavenProject}}>>>
+ instances for each Maven project accessible within a specified URL:
+
+---
+/**
+ * @component
+ */
+private MavenRuntime runtime;
+
+public void processProjects() throws MavenRuntimeException
+{
+ List<MavenProject> projects = runtime.getProjects( myUrl );
+
+ // process projects
+}
+---
Modified: maven/shared/trunk/maven-runtime/src/site/apt/index.apt
URL:
http://svn.apache.org/viewvc/maven/shared/trunk/maven-runtime/src/site/apt/index.apt?rev=831890&r1=831889&r2=831890&view=diff
==============================================================================
--- maven/shared/trunk/maven-runtime/src/site/apt/index.apt (original)
+++ maven/shared/trunk/maven-runtime/src/site/apt/index.apt Mon Nov 2 13:13:50
2009
@@ -36,6 +36,8 @@
To provide you with better understanding of some usages of Maven Runtime, you
can take a look into the following
examples:
- * {{{examples/introspecting-a-class-loader.html}Introspecting a class loader}}
-
+ * {{{examples/introspecting-a-url.html}Introspecting a URL}}
+
* {{{examples/introspecting-a-class.html}Introspecting a class}}
+
+ * {{{examples/introspecting-a-class-loader.html}Introspecting a class loader}}
Modified: maven/shared/trunk/maven-runtime/src/site/site.xml
URL:
http://svn.apache.org/viewvc/maven/shared/trunk/maven-runtime/src/site/site.xml?rev=831890&r1=831889&r2=831890&view=diff
==============================================================================
--- maven/shared/trunk/maven-runtime/src/site/site.xml (original)
+++ maven/shared/trunk/maven-runtime/src/site/site.xml Mon Nov 2 13:13:50 2009
@@ -27,8 +27,9 @@
<item name="FAQ" href="faq.html"/>
</menu>
<menu name="Examples">
- <item name="Introspecting a class loader"
href="examples/introspecting-a-class-loader.html"/>
+ <item name="Introspecting a URL"
href="examples/introspecting-a-url.html"/>
<item name="Introspecting a class"
href="examples/introspecting-a-class.html"/>
+ <item name="Introspecting a class loader"
href="examples/introspecting-a-class-loader.html"/>
</menu>
<menu ref="reports"/>
</body>