From f183b572da26cbe2605d7929f56889619823c307 Mon Sep 17 00:00:00 2001 From: brett Date: Wed, 15 Jun 2005 12:00:30 +0000 Subject: [PATCH] moved to sandbox git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@190738 13f79535-47bb-0310-9956-ffa450edef68 --- vdoclet/plugin.jelly | 42 ---- vdoclet/plugin.properties | 26 --- vdoclet/project.properties | 19 -- vdoclet/project.xml | 114 ----------- .../org/apache/maven/vdoclet/VDocletBean.java | 186 ------------------ vdoclet/xdocs/changes.xml | 42 ---- vdoclet/xdocs/goals.xml | 30 --- vdoclet/xdocs/index.xml | 33 ---- vdoclet/xdocs/navigation.xml | 34 ---- vdoclet/xdocs/properties.xml | 61 ------ 10 files changed, 587 deletions(-) delete mode 100644 vdoclet/plugin.jelly delete mode 100644 vdoclet/plugin.properties delete mode 100644 vdoclet/project.properties delete mode 100644 vdoclet/project.xml delete mode 100644 vdoclet/src/main/org/apache/maven/vdoclet/VDocletBean.java delete mode 100644 vdoclet/xdocs/changes.xml delete mode 100644 vdoclet/xdocs/goals.xml delete mode 100644 vdoclet/xdocs/index.xml delete mode 100644 vdoclet/xdocs/navigation.xml delete mode 100644 vdoclet/xdocs/properties.xml diff --git a/vdoclet/plugin.jelly b/vdoclet/plugin.jelly deleted file mode 100644 index 7c595177..00000000 --- a/vdoclet/plugin.jelly +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - - - - - - - - diff --git a/vdoclet/plugin.properties b/vdoclet/plugin.properties deleted file mode 100644 index c8494f61..00000000 --- a/vdoclet/plugin.properties +++ /dev/null @@ -1,26 +0,0 @@ -# ------------------------------------------------------------------- -# Copyright 2001-2004 The Apache Software Foundation. -# -# Licensed 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. -# ------------------------------------------------------------------- - -# ------------------------------------------------------------------- -# Default Maven properties for the VDoclet plugin. -# ------------------------------------------------------------------- -# These are the properties that we believe are immutable so we -# keep them apart from the project specific properties. -# ------------------------------------------------------------------- - -maven.vdoclet.srcDir = NOT_SET -maven.vdoclet.destDir = NOT_SET -maven.vdoclet.template = NOT_SET diff --git a/vdoclet/project.properties b/vdoclet/project.properties deleted file mode 100644 index d66f96c3..00000000 --- a/vdoclet/project.properties +++ /dev/null @@ -1,19 +0,0 @@ -# ------------------------------------------------------------------- -# Copyright 2001-2004 The Apache Software Foundation. -# -# Licensed 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. -# ------------------------------------------------------------------- - -# ------------------------------------------------------------------- -# P R O J E C T P R O P E R T I E S -# ------------------------------------------------------------------- diff --git a/vdoclet/project.xml b/vdoclet/project.xml deleted file mode 100644 index a18021ef..00000000 --- a/vdoclet/project.xml +++ /dev/null @@ -1,114 +0,0 @@ - - - - - - ../plugin-parent/project.xml - 3 - maven-vdoclet-plugin - Maven VDoclet Plug-in - 1.2.1-SNAPSHOT - VDoclet plugin for Maven. Allows you to easily create information from source code using velocity driven templates - VDoclet plugin for Maven - http://maven.apache.org/reference/plugins/vdoclet/ - http://jira.codehaus.org/browse/MPVDOCLET - /www/maven.apache.org/reference/plugins/vdoclet/ - - scm:svn:http://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk/vdoclet/ - scm:svn:https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk/vdoclet/ - http://svn.apache.org/viewcvs.cgi/maven/maven-1/plugins/trunk/vdoclet/ - - - - 1.1 - 1.1 - MAVEN_VDOCLET_1_1 - - - 1.2 - 1.2 - MAVEN_VDOCLET_1_2 - - - - - Jason van Zyl - jvanzyl - jason@zenplex.com - Zenplex - - Architect - Release Manager - - - - Pete Kazmier - kaz - pete-apache-dev@kazmier.com - - - Developer - - - - - - vdoclet - vdoclet - 20020711 - - - velocity - velocity - 1.4-dev - - - vdoclet - qdox - current - - - commons-collections - commons-collections - 2.1 - - - oro - oro - 2.0.7 - - - commons-jelly - commons-jelly - 1.0-beta-4 - http://jakarta.apache.org/commons/jelly/ - - - commons-jelly - commons-jelly-tags-velocity - 1.0 - http://jakarta.apache.org/commons/jelly/ - - - logkit - logkit - 1.0.1 - - - diff --git a/vdoclet/src/main/org/apache/maven/vdoclet/VDocletBean.java b/vdoclet/src/main/org/apache/maven/vdoclet/VDocletBean.java deleted file mode 100644 index 1f07cd56..00000000 --- a/vdoclet/src/main/org/apache/maven/vdoclet/VDocletBean.java +++ /dev/null @@ -1,186 +0,0 @@ -package org.apache.maven.vdoclet; - -/* ==================================================================== - * Copyright 2001-2004 The Apache Software Foundation. - * - * Licensed 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; -import java.io.FileWriter; -import java.io.IOException; - -import org.apache.commons.jelly.JellyContext; -import org.apache.commons.jelly.tags.velocity.JellyContextAdapter; -import org.apache.velocity.context.Context; - -import com.thoughtworks.qdox.model.JavaSource; - -import vdoclet.Generator; -import vdoclet.docinfo.DocInfo; -import vdoclet.docinfo.QDoxBuilder; - -/** - * Command-line entry-point to vDoclet - */ -public class VDocletBean -{ - /** output directory */ - File srcDir; - - /** output directory */ - File destDir; - - /** output directory */ - String outputFile; - - /** control template */ - String template; - - /** encoding */ - String encoding; - - /** verbose flag */ - boolean verbose = false; - - /** docinfo */ - DocInfo docInfo; - - /** The jelly context */ - JellyContext jellyContext; - - /** - * Alias for srcPath - */ - public void setSrcDir(File srcDir) - { - this.srcDir = srcDir; - } - - /** - * destDir attribute - */ - public void setDestDir(File destDir) - { - this.destDir = destDir; - } - - /** - * Set the Jelly context. - * - * @param jellyContext the Jelly context - */ - public void setJellyContext(JellyContext jellyContext) - { - this.jellyContext = jellyContext; - } - - /** - * destDir attribute - */ - public void setOutputFile(String outputFile) - { - this.outputFile = outputFile; - } - - /** - * template attribute - */ - public void setTemplate(String template) - { - this.template = template; - } - - /** - * encoding attribute - */ - public void setEncoding(String encoding) - { - this.encoding = encoding; - } - - /** - * Description of the Method - */ - public void execute() - throws Exception - { - parseSources(); - generate(); - } - - /** - * Description of the Method - */ - void log(String msg) - { - if (verbose) - { - System.err.println(msg); - } - } - - /** - * Parse the source-files - */ - void parseSources() - throws IOException - { - com.thoughtworks.qdox.JavaDocBuilder builder = - new com.thoughtworks.qdox.JavaDocBuilder(); - - builder.addSourceTree(srcDir); - - JavaSource[] javaSources = builder.getSources(); - log(javaSources.length + " source-files"); - docInfo = QDoxBuilder.build(javaSources); - docInfo.setSourcePath(srcDir.getAbsolutePath()); - } - - /** - * Kick-start generation - */ - void generate() - throws Exception - { - if (!destDir.exists()) - { - destDir.mkdirs(); - } - - Generator generator = new Generator(destDir); - generator.setAttribute("docInfo", docInfo); - - if (jellyContext != null) - { - generator.setAttribute("jellyContext", getJellyContextAdapter()); - } - - if (encoding != null) - { - generator.setAttribute("encoding", encoding); - } - generator.eval(template, new FileWriter(new File(destDir, outputFile))); - } - - private Context getJellyContextAdapter() - { - JellyContextAdapter adapter = new JellyContextAdapter(jellyContext); - - adapter.setReadOnly(true); - - return adapter; - } -} - diff --git a/vdoclet/xdocs/changes.xml b/vdoclet/xdocs/changes.xml deleted file mode 100644 index 5811b52c..00000000 --- a/vdoclet/xdocs/changes.xml +++ /dev/null @@ -1,42 +0,0 @@ - - - - - - Changes - Jason van Zyl - - - - - update to commons-jelly-20030902.160215 - Move to oro 2.0.7 - - Regen plugin docs, fix various project.xml issues. - - - - - - Original release for Maven 1.0-beta8 - - - - - diff --git a/vdoclet/xdocs/goals.xml b/vdoclet/xdocs/goals.xml deleted file mode 100644 index 7aa08896..00000000 --- a/vdoclet/xdocs/goals.xml +++ /dev/null @@ -1,30 +0,0 @@ - - - - - - - Maven VDoclet Plug-in Goals - dIon Gillard - - - - - - \ No newline at end of file diff --git a/vdoclet/xdocs/index.xml b/vdoclet/xdocs/index.xml deleted file mode 100644 index c0d89bf1..00000000 --- a/vdoclet/xdocs/index.xml +++ /dev/null @@ -1,33 +0,0 @@ - - - - - - - Maven VDoclet Plug-in - Jason van Zyl - - - -
-

-

-
- -
diff --git a/vdoclet/xdocs/navigation.xml b/vdoclet/xdocs/navigation.xml deleted file mode 100644 index f6d17453..00000000 --- a/vdoclet/xdocs/navigation.xml +++ /dev/null @@ -1,34 +0,0 @@ - - - - - - Maven VDoclet Plugin - - - - - - - - - - - - diff --git a/vdoclet/xdocs/properties.xml b/vdoclet/xdocs/properties.xml deleted file mode 100644 index 2df6142d..00000000 --- a/vdoclet/xdocs/properties.xml +++ /dev/null @@ -1,61 +0,0 @@ - - - - - - - Maven VDoclet Plug-in Properties - dIon Gillard - - -
- - - - - - - - - - - - - - - - - - - - - -
PropertyOptional?Description
maven.vdoclet.templateYes -

Default value is - NOT_SET.

-
maven.vdoclet.srcDirYes -

Default value is - NOT_SET.

-
maven.vdoclet.destDirYes -

Default value is - NOT_SET.

-
-
- -
\ No newline at end of file