You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@shindig.apache.org by vs...@apache.org on 2009/04/03 14:16:51 UTC
svn commit: r761647 - in /incubator/shindig/trunk: features/pom.xml
features/src/site/ features/src/site/site.xml pom.xml
Author: vsiveton
Date: Fri Apr 3 12:16:50 2009
New Revision: 761647
URL: http://svn.apache.org/viewvc?rev=761647&view=rev
Log:
o generated JS documentation using JsDoc Toolkit Ant Task
Added:
incubator/shindig/trunk/features/src/site/
incubator/shindig/trunk/features/src/site/site.xml (with props)
Modified:
incubator/shindig/trunk/features/pom.xml
incubator/shindig/trunk/pom.xml
Modified: incubator/shindig/trunk/features/pom.xml
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/features/pom.xml?rev=761647&r1=761646&r2=761647&view=diff
==============================================================================
--- incubator/shindig/trunk/features/pom.xml (original)
+++ incubator/shindig/trunk/features/pom.xml Fri Apr 3 12:16:50 2009
@@ -130,7 +130,7 @@
<name>FeatureTests</name>
<type>TESTCASES</type>
<includes>
- <include>mocks/*.js</include>
+ <include>mocks/*.js</include>
<include>*/*test.js</include>
</includes>
</testSuite>
@@ -201,4 +201,84 @@
</resource>
</resources>
</build>
+
+ <profiles>
+ <profile>
+ <id>reporting</id>
+ <build>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>create-jsdoc-home</id>
+ <phase>site</phase>
+ <goals>
+ <goal>unpack</goal>
+ </goals>
+ <configuration>
+ <artifactItems>
+ <artifactItem>
+ <groupId>org.jsdoctoolkit</groupId>
+ <artifactId>jsdoc</artifactId>
+ <version>2.1.0</version>
+ <type>jar</type>
+ <overWrite>true</overWrite>
+ <outputDirectory>${project.build.directory}/jsdoc-toolkit</outputDirectory>
+ </artifactItem>
+ </artifactItems>
+ </configuration>
+ </execution>
+ </executions>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-antrun-plugin</artifactId>
+ <executions>
+ <execution>
+ <id>run-jsdoc</id>
+ <phase>site</phase>
+ <configuration>
+ <tasks>
+
+ <taskdef
+ name="jsdoctoolkit"
+ classname="uk.co.darrenhurley.ant.tasks.JsDocToolkit"/>
+
+ <mkdir dir="${project.reporting.outputDirectory}/jsdoc"/>
+
+ <jsdoctoolkit
+ jsdochome="${project.build.directory}/jsdoc-toolkit/"
+ template="jsdoc"
+ outputdir="${project.reporting.outputDirectory}/jsdoc">
+ <fileset dir="${basedir}/src/main/javascript/features">
+ <include name="**/*.js"/>
+ </fileset>
+ </jsdoctoolkit>
+
+ </tasks>
+ </configuration>
+ <goals>
+ <goal>run</goal>
+ </goals>
+ </execution>
+ </executions>
+ <dependencies>
+ <dependency>
+ <groupId>org.jsdoctoolkit</groupId>
+ <artifactId>jsdoctoolkit-ant-task</artifactId>
+ <version>1.0</version>
+ </dependency>
+ <dependency>
+ <groupId>rhino</groupId>
+ <artifactId>js</artifactId>
+ <version>1.7R1</version>
+ </dependency>
+ </dependencies>
+ </plugin>
+ </plugins>
+ </build>
+ </profile>
+ </profiles>
</project>
Added: incubator/shindig/trunk/features/src/site/site.xml
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/features/src/site/site.xml?rev=761647&view=auto
==============================================================================
--- incubator/shindig/trunk/features/src/site/site.xml (added)
+++ incubator/shindig/trunk/features/src/site/site.xml Fri Apr 3 12:16:50 2009
@@ -0,0 +1,36 @@
+<?xml version="1.0" encoding="UTF-8"?>
+
+<!--
+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.
+-->
+
+<project xmlns="http://maven.apache.org/DECORATION/1.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/DECORATION/1.0.0 http://maven.apache.org/xsd/decoration-1.0.0.xsd"
+ name="Apache Shindig Features">
+
+ <body>
+ <menu ref="parent"/>
+
+ <menu name="JavaScriptDoc">
+ <item name="Index" href="jsdoc/index.html"/>
+ </menu>
+
+ <menu ref="reports" inherit="bottom" />
+ </body>
+</project>
Propchange: incubator/shindig/trunk/features/src/site/site.xml
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: incubator/shindig/trunk/features/src/site/site.xml
------------------------------------------------------------------------------
svn:keywords = Author Date Id Revision
Modified: incubator/shindig/trunk/pom.xml
URL: http://svn.apache.org/viewvc/incubator/shindig/trunk/pom.xml?rev=761647&r1=761646&r2=761647&view=diff
==============================================================================
--- incubator/shindig/trunk/pom.xml (original)
+++ incubator/shindig/trunk/pom.xml Fri Apr 3 12:16:50 2009
@@ -852,6 +852,11 @@
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-dependency-plugin</artifactId>
+ <version>2.1</version>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.4</version>
</plugin>