moved.
git-svn-id: https://svn.apache.org/repos/asf/maven/maven-1/plugins/trunk@114707 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
@@ -1,3 +0,0 @@
|
||||
target
|
||||
velocity.log
|
||||
maven.log
|
||||
@@ -1,17 +0,0 @@
|
||||
The Maven team is pleased to announce the Word2HTML plugin 1.3 release!
|
||||
|
||||
http://maven.apache.org/reference/plugins/word2html/
|
||||
|
||||
The Maven Word2HTML plugin is a plugin that automates the conversion of .doc files into HTML.
|
||||
|
||||
Changes in this version:
|
||||
|
||||
o Correctly handle files with .. in the names
|
||||
o Open the word documents in readonly mode
|
||||
o Make plugin run when maven site is invoked
|
||||
|
||||
You can download the Word2HTML plugin here:
|
||||
http://www.ibiblio.org/maven/maven/plugins/maven-word2html-plugin-1.3.jar
|
||||
|
||||
Have fun!
|
||||
dIon
|
||||
@@ -1,53 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
|
||||
<project xmlns:j="jelly:core" xmlns:u="jelly:util">
|
||||
|
||||
<j:set var="wordSrcDir" value="${maven.word2html.src.dir}"/>
|
||||
|
||||
|
||||
<goal name="word2html:prepare-filesystem"
|
||||
description="Create directories needed for the plugin">
|
||||
<j:if test="${!wordSrcDir.equals('MAVEN_WORD2HTML_SRC_DIR_NOT_SET')}">
|
||||
<mkdir dir="${maven.build.dir}/docs/"/>
|
||||
</j:if>
|
||||
</goal>
|
||||
|
||||
<goal name="word2html:generate"
|
||||
prereqs="xdoc:init,word2html:prepare-filesystem"
|
||||
description="Generate HTML docs from Word via CScript">
|
||||
|
||||
<j:if test="${!wordSrcDir.equals('MAVEN_WORD2HTML_SRC_DIR_NOT_SET')}">
|
||||
<echo>scanning: ${wordSrcDir}</echo>
|
||||
|
||||
<fileScanner var="wordFiles">
|
||||
<fileset dir="${wordSrcDir}">
|
||||
<patternset>
|
||||
<include name="**/*.doc"/>
|
||||
<exclude name="**/~*.doc"/>
|
||||
</patternset>
|
||||
</fileset>
|
||||
</fileScanner>
|
||||
|
||||
<j:set var="docsDest" value="${maven.docs.dest}"/>
|
||||
|
||||
<j:forEach var="file" items="${wordFiles.iterator()}">
|
||||
<echo>Generating from ${file} to ${docsDest}</echo>
|
||||
<exec executable="cscript.exe">
|
||||
<arg value='//NoLogo'/>
|
||||
<arg value='"${plugin.resources}/word2html.vbs" "${file}"' />
|
||||
<arg value='"${docsDest}"' />
|
||||
<arg value='"${wordSrcDir}"' />
|
||||
</exec>
|
||||
|
||||
</j:forEach>
|
||||
|
||||
</j:if>
|
||||
</goal>
|
||||
|
||||
<preGoal name="site">
|
||||
<j:if test="${!wordSrcDir.equals('MAVEN_WORD2HTML_SRC_DIR_NOT_SET')}">
|
||||
<attainGoal name="word2html:generate"/>
|
||||
</j:if>
|
||||
</preGoal>
|
||||
|
||||
</project>
|
||||
@@ -1 +0,0 @@
|
||||
maven.word2html.src.dir=MAVEN_WORD2HTML_SRC_DIR_NOT_SET
|
||||
@@ -1,4 +0,0 @@
|
||||
maven.xdoc.date=left
|
||||
## maven.xdoc.version=1.3
|
||||
maven.license.licenseFile=${basedir}/../LICENSE.txt
|
||||
|
||||
@@ -1,28 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<project>
|
||||
<extend>../project.xml</extend>
|
||||
<pomVersion>3</pomVersion>
|
||||
<id>maven-word2html-plugin</id>
|
||||
<name>Maven Word to HTML Plug-in</name>
|
||||
<currentVersion>1.4</currentVersion>
|
||||
<description>A Maven plugin to convert word docs into html for project usage</description>
|
||||
<shortDescription>Convert Word docs to HTML</shortDescription>
|
||||
<url>http://maven.apache.org/reference/plugins/word2html/</url>
|
||||
<siteDirectory>/www/maven.apache.org/reference/plugins/word2html/</siteDirectory>
|
||||
<repository>
|
||||
<connection>scm:cvs:pserver:anoncvs@cvs.apache.org:/home/cvspublic:maven-plugins/word2html/</connection>
|
||||
<url>http://cvs.apache.org/viewcvs/maven-plugins/word2html/</url>
|
||||
</repository>
|
||||
<developers>
|
||||
<developer>
|
||||
<name>dIon Gillard</name>
|
||||
<id>dion</id>
|
||||
<email>dion@multitask.com.au</email>
|
||||
<organization>Multitask Consulting</organization>
|
||||
<roles>
|
||||
<role>Java Developer</role>
|
||||
</roles>
|
||||
</developer>
|
||||
</developers>
|
||||
</project>
|
||||
@@ -1,83 +0,0 @@
|
||||
' Word2HTML.vbs
|
||||
' $Id: word2html.vbs,v 1.5 2003/08/28 05:15:09 dion Exp $
|
||||
Option Explicit
|
||||
|
||||
' Creates the output directories to the same depth as the inputFile specified
|
||||
' param inBaseDir The base directory for input files
|
||||
' param inputFile The file being processed
|
||||
' param outBaseDir The base directory for output files
|
||||
Function CreateOutputDirectories(inBaseDir, inputFile, outBaseDir)
|
||||
Dim relativePath
|
||||
relativePath = Mid(inputFile, Len(inBaseDir)+1)
|
||||
|
||||
' ensure the path doesn't end with a \
|
||||
If Left(relativePath, 1) = "\" Then
|
||||
relativePath = Right(relativePath, Len(relativePath) - 1)
|
||||
End If
|
||||
|
||||
' ensure the input basedir doesn't end with a \
|
||||
If Right(inBaseDir, 1) = "\" Then
|
||||
baseDir = Left(inBaseDir, Len(inBaseDir) - 1)
|
||||
End If
|
||||
|
||||
' ensure the output basedir doesn't end with a \
|
||||
If Right(outBaseDir, 1) = "\" Then
|
||||
outBaseDir = Left(outBaseDir, Len(outBaseDir) - 1)
|
||||
End If
|
||||
|
||||
Dim index, folder, paths, Files
|
||||
paths = Split(relativePath, "\")
|
||||
folder = outBaseDir
|
||||
Set Files = WScript.CreateObject("Scripting.FileSystemObject")
|
||||
For index = LBound(paths) to UBound(paths) -1
|
||||
folder = folder & "\" & paths(index)
|
||||
If Not Files.FolderExists(folder) Then
|
||||
Files.CreateFolder(folder)
|
||||
End If
|
||||
Next
|
||||
|
||||
CreateOutputDirectories = folder
|
||||
End Function
|
||||
|
||||
Function ExportAsHTML(inputFile, outputFile)
|
||||
Dim obj, HTMLFormat, wdDoNotSaveChanges
|
||||
Set obj = WScript.CreateObject("Word.Application")
|
||||
HTMLFormat = 8
|
||||
wdDoNotSaveChanges = 0
|
||||
|
||||
obj.Visible = FALSE
|
||||
obj.Documents.Open inputFile,,True
|
||||
obj.ActiveDocument.SaveAs outputFile, HTMLFormat
|
||||
obj.Quit wdDoNotSaveChanges
|
||||
|
||||
End Function
|
||||
|
||||
' Main chunk of code
|
||||
Dim basedir, FileSys, inputFile, outputDir, outputFile
|
||||
On Error Resume Next
|
||||
|
||||
' work out the directory structure for the input file
|
||||
Set FileSys = WScript.CreateObject("Scripting.FileSystemObject")
|
||||
|
||||
' Fully Qualified File name
|
||||
inputFile=FileSys.GetAbsolutePathName(WScript.Arguments(0))
|
||||
' Directory to place results in
|
||||
outputDir=FileSys.GetAbsolutePathName(WScript.Arguments(1))
|
||||
' base directory for the input file
|
||||
basedir = FileSys.GetAbsolutePathName(WScript.Arguments(2))
|
||||
|
||||
outputFile = CreateOutputDirectories(basedir, inputFile, outputDir) & "\" & _
|
||||
FileSys.GetBaseName(inputFile) & ".html"
|
||||
|
||||
' check if output file exists and is newer than input file
|
||||
' if it is, skip output
|
||||
If FileSys.Exists(outputFile) Then
|
||||
Dim fileOutput, fileInput
|
||||
Set fileOutput = FileSys.GetFile(outputFile)
|
||||
Set fileInput = FileSys.GetFile(inputFile)
|
||||
If fileOutput.DateLastModified < fileInput.DateLastModified Then
|
||||
ExportAsHTML inputFile, outputFile
|
||||
End If
|
||||
Else
|
||||
ExportAsHTML inputFile, outputFile
|
||||
End If
|
||||
@@ -1 +0,0 @@
|
||||
stylesheets
|
||||
@@ -1,24 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<document>
|
||||
<properties>
|
||||
<title>Changes</title>
|
||||
<author email="dion@apache.org">dIon Gillard</author>
|
||||
</properties>
|
||||
|
||||
<body>
|
||||
|
||||
<release version="1.3" date="2003-08-28">
|
||||
<action dev="dion" type="fix">
|
||||
Correctly handle files with <code>..</code> in the names
|
||||
</action>
|
||||
<action dev="dion" type="fix">
|
||||
Open the word documents in readonly mode
|
||||
</action>
|
||||
<action dev="dion" type="fix">
|
||||
Make plugin run when maven site is invoked
|
||||
</action>
|
||||
</release>
|
||||
|
||||
</body>
|
||||
</document>
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<document>
|
||||
<properties>
|
||||
<title>Maven word2html Plug-in Goals</title>
|
||||
<author email="dion@apache.org">dIon Gillard</author>
|
||||
</properties>
|
||||
<body>
|
||||
<goals>
|
||||
<goal>
|
||||
<name>word2html:generate</name>
|
||||
<description>Generate HTML docs from Word via CScript</description>
|
||||
</goal>
|
||||
<goal>
|
||||
<name>word2html:prepare-filesystem</name>
|
||||
<description>Create directories needed for the plugin</description>
|
||||
</goal>
|
||||
</goals>
|
||||
</body>
|
||||
</document>
|
||||
@@ -1,33 +0,0 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<document>
|
||||
|
||||
<properties>
|
||||
<title>Maven Word 2 HTML Plug-in</title>
|
||||
<author email="dion@multitask.com.au">dIon Gillard</author>
|
||||
</properties>
|
||||
|
||||
<body>
|
||||
<section name="Maven Word to HTML Plug-in">
|
||||
<p>
|
||||
This plug-in allows you to write your project documentation in Microsoft
|
||||
Word, and generate HTML from it on a <strong>Windows</strong> platform
|
||||
only.
|
||||
</p>
|
||||
<p>
|
||||
It converts Word documents to HTML using the
|
||||
<a href="http://msdn.microsoft.com/downloads/default.asp?url=/downloads/topic.asp?URL=/MSDN-FILES/028/001/175/topic.xml">
|
||||
Microsoft® Windows® Script</a>. You will need this installed to
|
||||
successfully use this plugin.
|
||||
</p>
|
||||
<p>
|
||||
To use this plug-in, make sure the property
|
||||
<code>${maven.word2html.src.dir}</code> has been set and run the
|
||||
<code>site:generate</code> goal.
|
||||
</p>
|
||||
<p>
|
||||
All documents matching <code>*.doc</code> in the directory will be
|
||||
converted to HTML.
|
||||
</p>
|
||||
</section>
|
||||
</body>
|
||||
</document>
|
||||
@@ -1,21 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<project name="Maven word2html Plugin">
|
||||
<title>Maven word2html Plugin</title>
|
||||
<body>
|
||||
<links>
|
||||
<item href="http://maven.apache.org/" name="Maven">
|
||||
</item>
|
||||
</links>
|
||||
<menu name="Overview">
|
||||
<item href="/goals.html" name="Goals">
|
||||
</item>
|
||||
<item href="/properties.html" name="Properties">
|
||||
</item>
|
||||
</menu>
|
||||
<menu name="Downloads">
|
||||
<item name="Word2HTML Plugin 1.3"
|
||||
href="http://www.ibiblio.org/maven/maven/plugins/maven-word2html-plugin-1.3.jar"/>
|
||||
</menu>
|
||||
</body>
|
||||
</project>
|
||||
@@ -1,27 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<document>
|
||||
<properties>
|
||||
<title>word2html Properties</title>
|
||||
<author email="dion@apache.org">dIon Gillard</author>
|
||||
</properties>
|
||||
<body>
|
||||
<section name="word2html Settings">
|
||||
<table>
|
||||
<tr>
|
||||
<th>Property</th>
|
||||
<th>Optional?</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven.word2html.src.dir</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
<p>Default value is
|
||||
<code>MAVEN_WORD2HTML_SRC_DIR_NOT_SET</code>.</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</section>
|
||||
</body>
|
||||
</document>
|
||||
@@ -1,24 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<document>
|
||||
<properties>
|
||||
<title>Changes</title>
|
||||
<author email="dion@apache.org">dIon Gillard</author>
|
||||
</properties>
|
||||
|
||||
<body>
|
||||
|
||||
<release version="1.3" date="2003-08-28">
|
||||
<action dev="dion" type="fix">
|
||||
Correctly handle files with <code>..</code> in the names
|
||||
</action>
|
||||
<action dev="dion" type="fix">
|
||||
Open the word documents in readonly mode
|
||||
</action>
|
||||
<action dev="dion" type="fix">
|
||||
Make plugin run when maven site is invoked
|
||||
</action>
|
||||
</release>
|
||||
|
||||
</body>
|
||||
</document>
|
||||
|
||||
@@ -1,29 +0,0 @@
|
||||
<?xml version="1.0"?>
|
||||
<document>
|
||||
<properties>
|
||||
<title>Changes</title>
|
||||
<author email="dion@apache.org">dIon Gillard</author>
|
||||
</properties>
|
||||
|
||||
<body>
|
||||
|
||||
<release version="1.4" date="2003-09-29">
|
||||
<action dev="dion" type="update">update to use maven.docs.*/maven.gen.docs</action>
|
||||
<action dev="dion" type="update">set maven.xdoc.version to 1.3 release for site</action>
|
||||
</release>
|
||||
|
||||
<release version="1.3" date="2003-08-28">
|
||||
<action dev="dion" type="fix">
|
||||
Correctly handle files with <code>..</code> in the names
|
||||
</action>
|
||||
<action dev="dion" type="fix">
|
||||
Open the word documents in readonly mode
|
||||
</action>
|
||||
<action dev="dion" type="fix">
|
||||
Make plugin run when maven site is invoked
|
||||
</action>
|
||||
</release>
|
||||
|
||||
</body>
|
||||
</document>
|
||||
|
||||
@@ -1,20 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<document>
|
||||
<properties>
|
||||
<title>Maven word2html Plug-in Goals</title>
|
||||
<author email="dion@apache.org">dIon Gillard</author>
|
||||
</properties>
|
||||
<body>
|
||||
<goals>
|
||||
<goal>
|
||||
<name>word2html:generate</name>
|
||||
<description>Generate HTML docs from Word via CScript</description>
|
||||
</goal>
|
||||
<goal>
|
||||
<name>word2html:prepare-filesystem</name>
|
||||
<description>Create directories needed for the plugin</description>
|
||||
</goal>
|
||||
</goals>
|
||||
</body>
|
||||
</document>
|
||||
@@ -1,33 +0,0 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<document>
|
||||
|
||||
<properties>
|
||||
<title>Maven Word 2 HTML Plug-in</title>
|
||||
<author email="dion@multitask.com.au">dIon Gillard</author>
|
||||
</properties>
|
||||
|
||||
<body>
|
||||
<section name="Maven Word to HTML Plug-in">
|
||||
<p>
|
||||
This plug-in allows you to write your project documentation in Microsoft
|
||||
Word, and generate HTML from it on a <strong>Windows</strong> platform
|
||||
only.
|
||||
</p>
|
||||
<p>
|
||||
It converts Word documents to HTML using the
|
||||
<a href="http://msdn.microsoft.com/downloads/default.asp?url=/downloads/topic.asp?URL=/MSDN-FILES/028/001/175/topic.xml">
|
||||
Microsoft® Windows® Script</a>. You will need this installed to
|
||||
successfully use this plugin.
|
||||
</p>
|
||||
<p>
|
||||
To use this plug-in, make sure the property
|
||||
<code>${maven.word2html.src.dir}</code> has been set and run the
|
||||
<code>site:generate</code> goal.
|
||||
</p>
|
||||
<p>
|
||||
All documents matching <code>*.doc</code> in the directory will be
|
||||
converted to HTML.
|
||||
</p>
|
||||
</section>
|
||||
</body>
|
||||
</document>
|
||||
@@ -1,27 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<document>
|
||||
<properties>
|
||||
<title>word2html Properties</title>
|
||||
<author email="dion@apache.org">dIon Gillard</author>
|
||||
</properties>
|
||||
<body>
|
||||
<section name="word2html Settings">
|
||||
<table>
|
||||
<tr>
|
||||
<th>Property</th>
|
||||
<th>Optional?</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven.word2html.src.dir</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
<p>Default value is
|
||||
<code>MAVEN_WORD2HTML_SRC_DIR_NOT_SET</code>.</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</section>
|
||||
</body>
|
||||
</document>
|
||||
@@ -1,20 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<document>
|
||||
<properties>
|
||||
<title>Maven word2html Plug-in Goals</title>
|
||||
<author email="dion@apache.org">dIon Gillard</author>
|
||||
</properties>
|
||||
<body>
|
||||
<goals>
|
||||
<goal>
|
||||
<name>word2html:generate</name>
|
||||
<description>Generate HTML docs from Word via CScript</description>
|
||||
</goal>
|
||||
<goal>
|
||||
<name>word2html:prepare-filesystem</name>
|
||||
<description>Create directories needed for the plugin</description>
|
||||
</goal>
|
||||
</goals>
|
||||
</body>
|
||||
</document>
|
||||
@@ -1,33 +0,0 @@
|
||||
<?xml version="1.0" encoding="ISO-8859-1"?>
|
||||
<document>
|
||||
|
||||
<properties>
|
||||
<title>Maven Word 2 HTML Plug-in</title>
|
||||
<author email="dion@multitask.com.au">dIon Gillard</author>
|
||||
</properties>
|
||||
|
||||
<body>
|
||||
<section name="Maven Word to HTML Plug-in">
|
||||
<p>
|
||||
This plug-in allows you to write your project documentation in Microsoft
|
||||
Word, and generate HTML from it on a <strong>Windows</strong> platform
|
||||
only.
|
||||
</p>
|
||||
<p>
|
||||
It converts Word documents to HTML using the
|
||||
<a href="http://msdn.microsoft.com/downloads/default.asp?url=/downloads/topic.asp?URL=/MSDN-FILES/028/001/175/topic.xml">
|
||||
Microsoft® Windows® Script</a>. You will need this installed to
|
||||
successfully use this plugin.
|
||||
</p>
|
||||
<p>
|
||||
To use this plug-in, make sure the property
|
||||
<code>${maven.word2html.src.dir}</code> has been set and run the
|
||||
<code>site:generate</code> goal.
|
||||
</p>
|
||||
<p>
|
||||
All documents matching <code>*.doc</code> in the directory will be
|
||||
converted to HTML.
|
||||
</p>
|
||||
</section>
|
||||
</body>
|
||||
</document>
|
||||
@@ -1,25 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<project name="Maven word2html Plugin">
|
||||
<title>Maven word2html Plugin</title>
|
||||
<body>
|
||||
<links>
|
||||
<item href="http://maven.apache.org/" name="Maven">
|
||||
</item>
|
||||
</links>
|
||||
<menu name="Overview">
|
||||
<item href="/goals.html" name="Goals">
|
||||
</item>
|
||||
<item href="/properties.html" name="Properties">
|
||||
</item>
|
||||
</menu>
|
||||
<menu name="Versions">
|
||||
<item name="Current" href="current/index.html"/>
|
||||
<item name="Release 1.3" href="1.3/index.html"/>
|
||||
</menu>
|
||||
<menu name="Downloads">
|
||||
<item name="Word2HTML Plugin 1.3"
|
||||
href="http://www.ibiblio.org/maven/maven/plugins/maven-word2html-plugin-1.3.jar"/>
|
||||
</menu>
|
||||
</body>
|
||||
</project>
|
||||
@@ -1,27 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
|
||||
<document>
|
||||
<properties>
|
||||
<title>word2html Properties</title>
|
||||
<author email="dion@apache.org">dIon Gillard</author>
|
||||
</properties>
|
||||
<body>
|
||||
<section name="word2html Settings">
|
||||
<table>
|
||||
<tr>
|
||||
<th>Property</th>
|
||||
<th>Optional?</th>
|
||||
<th>Description</th>
|
||||
</tr>
|
||||
<tr>
|
||||
<td>maven.word2html.src.dir</td>
|
||||
<td>Yes</td>
|
||||
<td>
|
||||
<p>Default value is
|
||||
<code>MAVEN_WORD2HTML_SRC_DIR_NOT_SET</code>.</p>
|
||||
</td>
|
||||
</tr>
|
||||
</table>
|
||||
</section>
|
||||
</body>
|
||||
</document>
|
||||
Reference in New Issue
Block a user