You can subscribe to this list here.
| 2007 |
Jan
|
Feb
|
Mar
|
Apr
|
May
|
Jun
|
Jul
|
Aug
(13) |
Sep
|
Oct
|
Nov
|
Dec
|
|---|
|
From: <mk...@us...> - 2007-08-27 16:55:07
|
Revision: 17
http://components4oaw.svn.sourceforge.net/components4oaw/?rev=17&view=rev
Author: mklink
Date: 2007-08-25 11:16:38 -0700 (Sat, 25 Aug 2007)
Log Message:
-----------
Moved package and added test
Modified Paths:
--------------
trunk/components4oaw-parent/src/site/site.xml
Added Paths:
-----------
trunk/components4oaw-parent/pom.xml.releaseBackup
Added: trunk/components4oaw-parent/pom.xml.releaseBackup
===================================================================
--- trunk/components4oaw-parent/pom.xml.releaseBackup (rev 0)
+++ trunk/components4oaw-parent/pom.xml.releaseBackup 2007-08-25 18:16:38 UTC (rev 17)
@@ -0,0 +1,147 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>net.components4oaw</groupId>
+ <artifactId>components4oaw-parent</artifactId>
+ <version>1.0.0</version>
+ <packaging>pom</packaging>
+
+ <name>components4oaw</name>
+ <description>
+ components4oaw is a collection of components for the MDA
+ framework open Architectureware.
+ </description>
+ <url>http://components4oaw.sourceforge.net/</url>
+
+ <organization>
+ <name>components4oaw development</name>
+ <url>http://components4oaw.sourceforge.net/</url>
+ </organization>
+
+ <modules>
+ <module>../jar</module>
+ <module>../openofficeconverter</module>
+ </modules>
+
+ <properties>
+ <scm-url-suffix>${artifactId}</scm-url-suffix>
+ </properties>
+
+ <licenses>
+ <license>
+ <name>Eclipse Public License</name>
+ <url>http://www.eclipse.org/legal/epl-v10.html</url>
+ <distribution>repo</distribution>
+ </license>
+ </licenses>
+
+ <issueManagement>
+ <system>sourceforge</system>
+ <url>http://sourceforge.net/tracker/?group_id=203960</url>
+ </issueManagement>
+
+ <scm>
+ <connection>
+ scm:svn:https://components4oaw.svn.sourceforge.net/svnroot/components4oaw/trunk/${scm-url-suffix}
+ </connection>
+ <developerConnection>
+ scm:svn:https://components4oaw.svn.sourceforge.net/svnroot/components4oaw/trunk/${scm-url-suffix}
+ </developerConnection>
+ <url>
+ http://components4oaw.svn.sourceforge.net/viewvc/components4oaw/trunk/${scm-url-suffix}/
+ </url>
+ </scm>
+
+ <build>
+ <finalName>${artifactId}-${version}</finalName>
+ <extensions>
+ <extension>
+ <groupId>org.apache.maven.wagon</groupId>
+ <artifactId>wagon-ssh-external</artifactId>
+ </extension>
+ </extensions>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-site-plugin</artifactId>
+ <configuration>
+ <locales>en</locales>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <configuration>
+ <minmemory>128m</minmemory>
+ <maxmemory>512</maxmemory>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-compiler-plugin</artifactId>
+ <configuration>
+ <source>1.5</source>
+ <target>1.5</target>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-plugin</artifactId>
+ <configuration>
+ <forkMode>pertest</forkMode>
+ <reportFormat>plain</reportFormat>
+ </configuration>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-release-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </build>
+
+ <reporting>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>
+ maven-project-info-reports-plugin
+ </artifactId>
+ <reportSets>
+ <reportSet>
+ <reports>
+ <report>index</report>
+ <report>dependency-convergence</report>
+ <report>project-team</report>
+ <report>mailing-list</report>
+ <report>issue-tracking</report>
+ <report>license</report>
+ <report>scm</report>
+ </reports>
+ </reportSet>
+ </reportSets>
+ </plugin>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-surefire-report-plugin</artifactId>
+ </plugin>
+ </plugins>
+ </reporting>
+
+ <distributionManagement>
+ <repository>
+ <id>components4oaw.rep</id>
+ <url>
+ scp://shell.sf.net/home/groups/c/co/components4oaw/htdocs/m2/repository/
+ </url>
+ </repository>
+ <site>
+ <id>components4oaw.site</id>
+ <url>
+ scp://shell.sf.net/home/groups/c/co/components4oaw/htdocs/
+ </url>
+ </site>
+ </distributionManagement>
+</project>
+
Modified: trunk/components4oaw-parent/src/site/site.xml
===================================================================
--- trunk/components4oaw-parent/src/site/site.xml 2007-08-25 10:07:20 UTC (rev 16)
+++ trunk/components4oaw-parent/src/site/site.xml 2007-08-25 18:16:38 UTC (rev 17)
@@ -23,10 +23,12 @@
<item name="oaw"
href="http://www.openarchitectureware.org/" />
<item name="fornax" href="http://www.fornax-platform.org/" />
- <item name="sourceforge" href="http://sourceforge.net/projects/components4oaw"/>
+ <item name="sourceforge"
+ href="http://sourceforge.net/projects/components4oaw" />
</menu>
<menu name="Repository">
- <item name="components4oaw" href="http://components4oaw.sourceforge.net/m2/repository/" />
+ <item name="components4oaw"
+ href="http://components4oaw.sourceforge.net/m2/repository/" />
</menu>
${reports}
</body>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mk...@us...> - 2007-08-27 16:54:20
|
Revision: 22
http://components4oaw.svn.sourceforge.net/components4oaw/?rev=22&view=rev
Author: mklink
Date: 2007-08-25 12:56:02 -0700 (Sat, 25 Aug 2007)
Log Message:
-----------
added new tests
Modified Paths:
--------------
trunk/components4oaw-parent/pom.xml
Modified: trunk/components4oaw-parent/pom.xml
===================================================================
--- trunk/components4oaw-parent/pom.xml 2007-08-25 18:18:07 UTC (rev 21)
+++ trunk/components4oaw-parent/pom.xml 2007-08-25 19:56:02 UTC (rev 22)
@@ -125,10 +125,19 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-report-plugin</artifactId>
</plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>cobertura-maven-plugin</artifactId>
+ <configuration>
+ <formats>
+ <format>html</format>
+ </formats>
+ </configuration>
+ </plugin>
</plugins>
</reporting>
-
+
<distributionManagement>
<repository>
<id>components4oaw.rep</id>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mk...@us...> - 2007-08-27 16:12:36
|
Revision: 21
http://components4oaw.svn.sourceforge.net/components4oaw/?rev=21&view=rev
Author: mklink
Date: 2007-08-25 11:18:07 -0700 (Sat, 25 Aug 2007)
Log Message:
-----------
Added Paths:
-----------
trunk/openofficeconverter/src/main/java/net/components4oaw/openofficeconverter/OpenOfficeConverter.java
trunk/openofficeconverter/src/test/java/net/components4oaw/
trunk/openofficeconverter/src/test/java/net/components4oaw/openofficeconverter/
trunk/openofficeconverter/src/test/java/net/components4oaw/openofficeconverter/OpenOfficeConverterTest.java
Added: trunk/openofficeconverter/src/main/java/net/components4oaw/openofficeconverter/OpenOfficeConverter.java
===================================================================
--- trunk/openofficeconverter/src/main/java/net/components4oaw/openofficeconverter/OpenOfficeConverter.java (rev 0)
+++ trunk/openofficeconverter/src/main/java/net/components4oaw/openofficeconverter/OpenOfficeConverter.java 2007-08-25 18:18:07 UTC (rev 21)
@@ -0,0 +1,52 @@
+package net.components4oaw.openofficeconverter;
+
+import java.io.File;
+
+import org.openarchitectureware.workflow.WfCHelper;
+import org.openarchitectureware.workflow.WorkflowContext;
+import org.openarchitectureware.workflow.issues.Issues;
+import org.openarchitectureware.workflow.lib.AbstractWorkflowComponent;
+import org.openarchitectureware.workflow.monitor.ProgressMonitor;
+
+import com.artofsolving.jodconverter.DocumentConverter;
+import com.artofsolving.jodconverter.openoffice.connection.OpenOfficeConnection;
+import com.artofsolving.jodconverter.openoffice.connection.SocketOpenOfficeConnection;
+import com.artofsolving.jodconverter.openoffice.converter.OpenOfficeDocumentConverter;
+
+public class OpenOfficeConverter extends AbstractWorkflowComponent {
+
+ private String inputFile;
+ private String outputFile;
+
+ public String getInputFile() {
+ return inputFile;
+ }
+
+ public void setInputFile(String inputFile) {
+ this.inputFile = inputFile;
+ }
+
+ public String getOutputFile() {
+ return outputFile;
+ }
+
+ public void setOutputFile(String outputFile) {
+ this.outputFile = outputFile;
+ }
+
+ public void checkConfiguration(Issues arg0) {
+ if (getInputFile() == null || !WfCHelper.isLegalFile(getInputFile())
+ || getOutputFile() == null)
+ arg0.addError("Input- or OutputFile not set correctly.");
+
+ }
+
+ public void invoke(WorkflowContext arg0, ProgressMonitor arg1, Issues arg2) {
+ OpenOfficeConnection connection = new SocketOpenOfficeConnection();
+ DocumentConverter converter = new OpenOfficeDocumentConverter(
+ connection);
+
+ converter.convert(new File(getInputFile()), new File(getOutputFile()));
+ }
+
+}
Property changes on: trunk/openofficeconverter/src/main/java/net/components4oaw/openofficeconverter/OpenOfficeConverter.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
Added: trunk/openofficeconverter/src/test/java/net/components4oaw/openofficeconverter/OpenOfficeConverterTest.java
===================================================================
--- trunk/openofficeconverter/src/test/java/net/components4oaw/openofficeconverter/OpenOfficeConverterTest.java (rev 0)
+++ trunk/openofficeconverter/src/test/java/net/components4oaw/openofficeconverter/OpenOfficeConverterTest.java 2007-08-25 18:18:07 UTC (rev 21)
@@ -0,0 +1,27 @@
+package net.components4oaw.openofficeconverter;
+
+
+import org.junit.After;
+import org.junit.AfterClass;
+import org.junit.Before;
+import org.junit.BeforeClass;
+
+public class OpenOfficeConverterTest {
+
+ @BeforeClass
+ public static void setUpBeforeClass() throws Exception {
+ }
+
+ @AfterClass
+ public static void tearDownAfterClass() throws Exception {
+ }
+
+ @Before
+ public void setUp() throws Exception {
+ }
+
+ @After
+ public void tearDown() throws Exception {
+ }
+
+}
Property changes on: trunk/openofficeconverter/src/test/java/net/components4oaw/openofficeconverter/OpenOfficeConverterTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mk...@us...> - 2007-08-27 16:08:48
|
Revision: 27
http://components4oaw.svn.sourceforge.net/components4oaw/?rev=27&view=rev
Author: mklink
Date: 2007-08-26 12:23:00 -0700 (Sun, 26 Aug 2007)
Log Message:
-----------
Modified Paths:
--------------
trunk/components4oaw-parent/pom.xml
Modified: trunk/components4oaw-parent/pom.xml
===================================================================
--- trunk/components4oaw-parent/pom.xml 2007-08-26 18:30:56 UTC (rev 26)
+++ trunk/components4oaw-parent/pom.xml 2007-08-26 19:23:00 UTC (rev 27)
@@ -137,6 +137,19 @@
</plugins>
</reporting>
+ <mailingLists>
+ <mailingList>
+ <name>components4oaw-discussion, mailing list for all things related to components4oaw.</name>
+ <subscribe>https://lists.sourceforge.net/lists/listinfo/components4oaw-discussion</subscribe>
+ <unsubscribe>https://lists.sourceforge.net/lists/listinfo/components4oaw-discussion</unsubscribe>
+ <post>com...@li...</post>
+ </mailingList>
+ <mailingList>
+ <name>components4oaw-svn, mailing list for subversion changes.</name>
+ <subscribe>https://lists.sourceforge.net/lists/listinfo/components4oaw-svn</subscribe>
+ <unsubscribe>https://lists.sourceforge.net/lists/listinfo/components4oaw-svn</unsubscribe>
+ </mailingList>
+ </mailingLists>
<distributionManagement>
<repository>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mk...@us...> - 2007-08-27 16:04:17
|
Revision: 23
http://components4oaw.svn.sourceforge.net/components4oaw/?rev=23&view=rev
Author: mklink
Date: 2007-08-25 12:56:15 -0700 (Sat, 25 Aug 2007)
Log Message:
-----------
added new tests
Modified Paths:
--------------
trunk/jar/pom.xml
trunk/jar/src/main/java/net/components4oaw/jar/JarCompress.java
Added Paths:
-----------
trunk/jar/src/test/java/net/components4oaw/jar/JarCompressTest.java
Modified: trunk/jar/pom.xml
===================================================================
--- trunk/jar/pom.xml 2007-08-25 19:56:02 UTC (rev 22)
+++ trunk/jar/pom.xml 2007-08-25 19:56:15 UTC (rev 23)
@@ -1,4 +1,6 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<parent>
<artifactId>components4oaw-parent</artifactId>
<groupId>net.components4oaw</groupId>
@@ -9,9 +11,9 @@
<groupId>net.components4oaw</groupId>
<artifactId>jar</artifactId>
<name>jar</name>
-
+
<url>/${artifactId}</url>
-
+
<version>1.0.1</version>
<description>
Extract and compress jar files with this component
Modified: trunk/jar/src/main/java/net/components4oaw/jar/JarCompress.java
===================================================================
--- trunk/jar/src/main/java/net/components4oaw/jar/JarCompress.java 2007-08-25 19:56:02 UTC (rev 22)
+++ trunk/jar/src/main/java/net/components4oaw/jar/JarCompress.java 2007-08-25 19:56:15 UTC (rev 23)
@@ -1,6 +1,5 @@
package net.components4oaw.jar;
-
import java.io.File;
import java.io.FileInputStream;
import java.io.FileOutputStream;
@@ -12,14 +11,17 @@
import java.util.jar.JarEntry;
import java.util.jar.JarOutputStream;
+import org.openarchitectureware.workflow.WfCHelper;
import org.openarchitectureware.workflow.WorkflowContext;
import org.openarchitectureware.workflow.issues.Issues;
import org.openarchitectureware.workflow.lib.AbstractWorkflowComponent;
import org.openarchitectureware.workflow.monitor.ProgressMonitor;
+
/**
* Compress the contents of a specified directory into a jar file.
+ *
* @author MarkusK
- *
+ *
*/
public class JarCompress extends AbstractWorkflowComponent {
@@ -27,7 +29,8 @@
private String outputFile;
public void checkConfiguration(Issues arg0) {
- // TODO Auto-generated method stub
+ if (getInputDir() == null || getOutputFile() == null)
+ arg0.addError("InputDir or OutputFile not set correctly.");
}
@@ -42,30 +45,30 @@
public void invoke(WorkflowContext arg0, ProgressMonitor arg1, Issues arg2) {
System.out.println("Invoking JarCompress Component.");
URI inputDirURI = new File(inputDir).toURI();
-
+
try {
FileOutputStream stream = new FileOutputStream(new File(
getOutputFile()));
JarOutputStream out = new JarOutputStream(stream);
-
-
+
File dir = new File(new File(getInputDir()).getAbsolutePath());
byte buffer[] = new byte[1024];
for (File input : listFiles(dir)) {
if (input.isDirectory())
continue;
- JarEntry jarAdd = new JarEntry(inputDirURI.relativize(input.toURI()).toString());
+ JarEntry jarAdd = new JarEntry(inputDirURI.relativize(
+ input.toURI()).toString());
jarAdd.setTime(input.lastModified());
-
-// if (input.isDirectory()) {
-// jarAdd.setSize(0);
-// jarAdd.setCrc(0);
-// out.putNextEntry(jarAdd);
-// continue;
-// }
-
+
+ // if (input.isDirectory()) {
+ // jarAdd.setSize(0);
+ // jarAdd.setCrc(0);
+ // out.putNextEntry(jarAdd);
+ // continue;
+ // }
+
out.putNextEntry(jarAdd);
// Write file to archive
Added: trunk/jar/src/test/java/net/components4oaw/jar/JarCompressTest.java
===================================================================
--- trunk/jar/src/test/java/net/components4oaw/jar/JarCompressTest.java (rev 0)
+++ trunk/jar/src/test/java/net/components4oaw/jar/JarCompressTest.java 2007-08-25 19:56:15 UTC (rev 23)
@@ -0,0 +1,43 @@
+package net.components4oaw.jar;
+
+import static org.junit.Assert.assertTrue;
+
+import org.junit.After;
+import org.junit.AfterClass;
+import org.junit.Before;
+import org.junit.BeforeClass;
+import org.junit.Test;
+import org.openarchitectureware.workflow.issues.Issues;
+import org.openarchitectureware.workflow.issues.IssuesImpl;
+
+public class JarCompressTest {
+
+ private JarCompress compress;
+
+ @BeforeClass
+ public static void setUpBeforeClass() throws Exception {
+ }
+
+ @AfterClass
+ public static void tearDownAfterClass() throws Exception {
+ }
+
+ @Before
+ public void setUp() throws Exception {
+ compress = new JarCompress();
+ }
+
+ @After
+ public void tearDown() throws Exception {
+ }
+
+ @Test
+ public void testCheckConfiguration() {
+ compress.setInputDir(null);
+ compress.setOutputFile(null);
+ Issues issues = new IssuesImpl();
+ compress.checkConfiguration(issues);
+ assertTrue(issues.hasErrors());
+ }
+
+}
Property changes on: trunk/jar/src/test/java/net/components4oaw/jar/JarCompressTest.java
___________________________________________________________________
Name: svn:mime-type
+ text/plain
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mk...@us...> - 2007-08-27 16:03:02
|
Revision: 18
http://components4oaw.svn.sourceforge.net/components4oaw/?rev=18&view=rev
Author: mklink
Date: 2007-08-25 11:17:01 -0700 (Sat, 25 Aug 2007)
Log Message:
-----------
Moved package and added test
Modified Paths:
--------------
trunk/jar/pom.xml
trunk/jar/src/main/java/net/components4oaw/jar/JarCompress.java
trunk/jar/src/main/java/net/components4oaw/jar/JarExtract.java
trunk/jar/src/test/java/net/components4oaw/jar/JarExtractTest.java
Added Paths:
-----------
trunk/jar/pom.xml.releaseBackup
trunk/jar/src/test/resources/output/
trunk/jar/src/test/resources/output/META-INF/
trunk/jar/src/test/resources/output/META-INF/MANIFEST.MF
Modified: trunk/jar/pom.xml
===================================================================
--- trunk/jar/pom.xml 2007-08-25 18:16:38 UTC (rev 17)
+++ trunk/jar/pom.xml 2007-08-25 18:17:01 UTC (rev 18)
@@ -29,6 +29,7 @@
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.1</version>
+ <scope>test</scope>
</dependency>
</dependencies>
Added: trunk/jar/pom.xml.releaseBackup
===================================================================
--- trunk/jar/pom.xml.releaseBackup (rev 0)
+++ trunk/jar/pom.xml.releaseBackup 2007-08-25 18:17:01 UTC (rev 18)
@@ -0,0 +1,55 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+ <parent>
+ <artifactId>components4oaw-parent</artifactId>
+ <groupId>net.components4oaw</groupId>
+ <version>1.0.0</version>
+ <relativePath>../components4oaw-parent</relativePath>
+ </parent>
+ <modelVersion>4.0.0</modelVersion>
+ <groupId>net.components4oaw</groupId>
+ <artifactId>jar</artifactId>
+ <name>jar</name>
+
+ <url>/${artifactId}</url>
+
+ <version>1.0.1-SNAPSHOT</version>
+ <description>
+ Extract and compress jar files with this component
+ </description>
+
+
+ <dependencies>
+ <dependency>
+ <groupId>org.fornax.openarchitectureware</groupId>
+ <artifactId>oaw-core</artifactId>
+ <version>4.1.2</version>
+ <type>pom</type>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.1</version>
+ </dependency>
+ </dependencies>
+
+ <reporting>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <configuration>
+ <sourcepath>${compileSourceRoots}</sourcepath>
+ <aggregate>true</aggregate>
+ <windowtitle>
+ components4oaw:
+ ${project.groupId}:${project.artifactId}:${project.version}
+ </windowtitle>
+ </configuration>
+ </plugin>
+ </plugins>
+ </reporting>
+</project>
+
Modified: trunk/jar/src/main/java/net/components4oaw/jar/JarCompress.java
===================================================================
--- trunk/jar/src/main/java/net/components4oaw/jar/JarCompress.java 2007-08-25 18:16:38 UTC (rev 17)
+++ trunk/jar/src/main/java/net/components4oaw/jar/JarCompress.java 2007-08-25 18:17:01 UTC (rev 18)
@@ -16,7 +16,11 @@
import org.openarchitectureware.workflow.issues.Issues;
import org.openarchitectureware.workflow.lib.AbstractWorkflowComponent;
import org.openarchitectureware.workflow.monitor.ProgressMonitor;
-
+/**
+ * Compress the contents of a specified directory into a jar file.
+ * @author MarkusK
+ *
+ */
public class JarCompress extends AbstractWorkflowComponent {
private String inputDir;
@@ -27,6 +31,14 @@
}
+ public String getInputDir() {
+ return inputDir;
+ }
+
+ public String getOutputFile() {
+ return outputFile;
+ }
+
public void invoke(WorkflowContext arg0, ProgressMonitor arg1, Issues arg2) {
System.out.println("Invoking JarCompress Component.");
URI inputDirURI = new File(inputDir).toURI();
@@ -87,18 +99,10 @@
return result;
}
- public String getInputDir() {
- return inputDir;
- }
-
public void setInputDir(String inputDir) {
this.inputDir = inputDir;
}
- public String getOutputFile() {
- return outputFile;
- }
-
public void setOutputFile(String outputFile) {
this.outputFile = outputFile;
}
Modified: trunk/jar/src/main/java/net/components4oaw/jar/JarExtract.java
===================================================================
--- trunk/jar/src/main/java/net/components4oaw/jar/JarExtract.java 2007-08-25 18:16:38 UTC (rev 17)
+++ trunk/jar/src/main/java/net/components4oaw/jar/JarExtract.java 2007-08-25 18:17:01 UTC (rev 18)
@@ -5,7 +5,6 @@
import java.io.FileOutputStream;
import java.io.IOException;
import java.io.InputStream;
-import java.net.URISyntaxException;
import java.util.Enumeration;
import java.util.jar.JarEntry;
import java.util.jar.JarFile;
@@ -16,7 +15,11 @@
import org.openarchitectureware.workflow.lib.AbstractWorkflowComponent;
import org.openarchitectureware.workflow.monitor.ProgressMonitor;
-public class JarExtract extends AbstractWorkflowComponent {
+/**
+ * Extract the contents of a jar file to a specified directory.
+ * @author MarkusK
+ *
+ */public class JarExtract extends AbstractWorkflowComponent{
private String inputFile;
private String outputDir;
@@ -26,19 +29,6 @@
}
- public void invoke(WorkflowContext arg0, ProgressMonitor arg1, Issues arg2) {
- System.out.println("Invoking JarExtract Component.");
- System.out.println("OutputDir = " + getOutputDir());
- System.out.println("InputFile = " + getInputFile());
-
- try {
- extract();
- } catch (IOException ex) {
- ex.printStackTrace(System.err);
- }
-
- }
-
public void extract() throws IOException, ZipException {
JarFile jar = new JarFile(getInputFile());
for (Enumeration<JarEntry> entries = jar.entries(); entries
@@ -67,14 +57,27 @@
return inputFile;
}
+ public String getOutputDir() {
+ return outputDir;
+ }
+
+ public void invoke(WorkflowContext arg0, ProgressMonitor arg1, Issues arg2) {
+ System.out.println("Invoking JarExtract Component.");
+ System.out.println("OutputDir = " + getOutputDir());
+ System.out.println("InputFile = " + getInputFile());
+
+ try {
+ extract();
+ } catch (IOException ex) {
+ ex.printStackTrace(System.err);
+ }
+
+ }
+
public void setInputFile(String inputFile) {
this.inputFile = inputFile;
}
- public String getOutputDir() {
- return outputDir;
- }
-
public void setOutputDir(String outputDir) {
this.outputDir = outputDir;
}
Modified: trunk/jar/src/test/java/net/components4oaw/jar/JarExtractTest.java
===================================================================
--- trunk/jar/src/test/java/net/components4oaw/jar/JarExtractTest.java 2007-08-25 18:16:38 UTC (rev 17)
+++ trunk/jar/src/test/java/net/components4oaw/jar/JarExtractTest.java 2007-08-25 18:17:01 UTC (rev 18)
@@ -37,25 +37,25 @@
}
/**
- * Test that a NullpointerException is thrown when no input file is
- * delivered.
+ * Test that the extract method delivers a ZipException when the input file
+ * does not exist at all.
*
* @throws IOException
*/
- @Test(expected = NullPointerException.class)
- public void testExtractNoParam() throws IOException, URISyntaxException {
+ @Test(expected = ZipException.class)
+ public void testExtractInvalidFile() throws IOException {
+ extract.setInputFile("testjar/Invalid.jar");
extract.extract();
}
/**
- * Test that the extract method delivers a ZipException when the input file
- * does not exist at all.
+ * Test that a NullpointerException is thrown when no input file is
+ * delivered.
*
* @throws IOException
*/
- @Test(expected = ZipException.class)
- public void testExtractInvalidFile() throws IOException {
- extract.setInputFile("testjar/Invalid.jar");
+ @Test(expected = NullPointerException.class)
+ public void testExtractNoParam() throws IOException, URISyntaxException {
extract.extract();
}
Added: trunk/jar/src/test/resources/output/META-INF/MANIFEST.MF
===================================================================
--- trunk/jar/src/test/resources/output/META-INF/MANIFEST.MF (rev 0)
+++ trunk/jar/src/test/resources/output/META-INF/MANIFEST.MF 2007-08-25 18:17:01 UTC (rev 18)
@@ -0,0 +1,3 @@
+Manifest-Version: 1.0
+Created-By: 1.5.0_12 (Sun Microsystems Inc.)
+
Property changes on: trunk/jar/src/test/resources/output/META-INF/MANIFEST.MF
___________________________________________________________________
Name: svn:mime-type
+ text/plain
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mk...@us...> - 2007-08-27 16:02:54
|
Revision: 20
http://components4oaw.svn.sourceforge.net/components4oaw/?rev=20&view=rev
Author: mklink
Date: 2007-08-25 11:17:21 -0700 (Sat, 25 Aug 2007)
Log Message:
-----------
Moved package and added test
Removed Paths:
-------------
trunk/openofficeconverter/src/test/java/net/components4oaw/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mk...@us...> - 2007-08-27 16:02:36
|
Revision: 26
http://components4oaw.svn.sourceforge.net/components4oaw/?rev=26&view=rev
Author: mklink
Date: 2007-08-26 11:30:56 -0700 (Sun, 26 Aug 2007)
Log Message:
-----------
introduction
Added Paths:
-----------
trunk/components4oaw-parent/src/site/apt/
trunk/components4oaw-parent/src/site/apt/index.apt
Added: trunk/components4oaw-parent/src/site/apt/index.apt
===================================================================
--- trunk/components4oaw-parent/src/site/apt/index.apt (rev 0)
+++ trunk/components4oaw-parent/src/site/apt/index.apt 2007-08-26 18:30:56 UTC (rev 26)
@@ -0,0 +1,49 @@
+About
+
+ components4oaw is a collection of utilities for the MDA/MDSD framework
+ {{{http://www.openarchitectureware.org}openArchitectureWare}}. All components
+ are made available via maven artefects, to be easily available for developers.
+ The whole project is currently in its planning and inception phase, and we are
+ looking for many contributions.
+
+ Those contributions will be in the area of:
+
+ * workflow components
+
+ * postprocessors
+
+ * xpand files
+
+ * cartridges
+
+ * metamodels
+
+ * xtend utility function collections
+
+Modules
+
+ The following modules are currently available with the project:
+
+*---------------*-------------------*
+jar | A workflow component to extract and compress jar files
+*---------------*-------------------*
+openofficeconverter | A workflow converter to convert various text document formats into each other
+*---------------*-------------------*
+
+ For more information have a look at the corresponding entry of the module.
+
+Policy
+
+ We will have a very lenient policy towards contributions. Contribute what
+ you deem useful, and use the infrastructure provided by components4oaw.
+ Developer access can easily be granted and projects should just adhere to a known open source license.
+
+Developers
+
+ <<JOIN!>> See the {{{http://sourceforge.net/projects/components4oaw}sourceforge project}} page.
+
+
+
+
+
+
\ No newline at end of file
Property changes on: trunk/components4oaw-parent/src/site/apt/index.apt
___________________________________________________________________
Name: svn:mime-type
+ text/plain
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mk...@us...> - 2007-08-27 16:01:14
|
Revision: 19
http://components4oaw.svn.sourceforge.net/components4oaw/?rev=19&view=rev
Author: mklink
Date: 2007-08-25 11:17:14 -0700 (Sat, 25 Aug 2007)
Log Message:
-----------
Moved package and added test
Modified Paths:
--------------
trunk/openofficeconverter/pom.xml
Added Paths:
-----------
trunk/openofficeconverter/pom.xml.releaseBackup
trunk/openofficeconverter/src/main/java/net/
trunk/openofficeconverter/src/main/java/net/components4oaw/
trunk/openofficeconverter/src/main/java/net/components4oaw/openofficeconverter/
Modified: trunk/openofficeconverter/pom.xml
===================================================================
--- trunk/openofficeconverter/pom.xml 2007-08-25 18:17:01 UTC (rev 18)
+++ trunk/openofficeconverter/pom.xml 2007-08-25 18:17:14 UTC (rev 19)
@@ -1,5 +1,7 @@
<?xml version="1.0" encoding="UTF-8"?>
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<artifactId>components4oaw-parent</artifactId>
@@ -51,6 +53,15 @@
</windowtitle>
</configuration>
</plugin>
+ <plugin>
+ <groupId>org.codehaus.mojo</groupId>
+ <artifactId>cobertura-maven-plugin</artifactId>
+ <configuration>
+ <formats>
+ <format>html</format>
+ </formats>
+ </configuration>
+ </plugin>
</plugins>
</reporting>
Added: trunk/openofficeconverter/pom.xml.releaseBackup
===================================================================
--- trunk/openofficeconverter/pom.xml.releaseBackup (rev 0)
+++ trunk/openofficeconverter/pom.xml.releaseBackup 2007-08-25 18:17:14 UTC (rev 19)
@@ -0,0 +1,58 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<project>
+ <modelVersion>4.0.0</modelVersion>
+ <parent>
+ <artifactId>components4oaw-parent</artifactId>
+ <groupId>net.components4oaw</groupId>
+ <version>1.0.0</version>
+ <relativePath>../components4oaw-parent</relativePath>
+ </parent>
+ <groupId>net.components4oaw</groupId>
+ <artifactId>openofficeconverter</artifactId>
+ <version>1.0.1-SNAPSHOT</version>
+ <name>openofficeconverter</name>
+ <description>
+ A component to convert between different file formats which
+ openoffice can read. Useful to transform OpenDocument XML
+ formats to Word documents.
+ </description>
+ <url>/${artifactId}</url>
+
+ <dependencies>
+ <dependency>
+ <groupId>org.fornax.openarchitectureware</groupId>
+ <artifactId>oaw-core</artifactId>
+ <version>4.1.2</version>
+ <type>pom</type>
+ </dependency>
+ <dependency>
+ <groupId>junit</groupId>
+ <artifactId>junit</artifactId>
+ <version>4.1</version>
+ </dependency>
+ <dependency>
+ <groupId>com.artofsolving</groupId>
+ <artifactId>jodconverter</artifactId>
+ <version>2.2.0</version>
+ </dependency>
+ </dependencies>
+
+ <reporting>
+ <plugins>
+ <plugin>
+ <groupId>org.apache.maven.plugins</groupId>
+ <artifactId>maven-javadoc-plugin</artifactId>
+ <configuration>
+ <sourcepath>${compileSourceRoots}</sourcepath>
+ <aggregate>true</aggregate>
+ <windowtitle>
+ components4oaw:
+ ${project.groupId}:${project.artifactId}:${project.version}
+ </windowtitle>
+ </configuration>
+ </plugin>
+ </plugins>
+ </reporting>
+
+</project>
+
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mk...@us...> - 2007-08-27 15:57:42
|
Revision: 24
http://components4oaw.svn.sourceforge.net/components4oaw/?rev=24&view=rev
Author: mklink
Date: 2007-08-25 12:56:26 -0700 (Sat, 25 Aug 2007)
Log Message:
-----------
added new tests
Modified Paths:
--------------
trunk/openofficeconverter/pom.xml
trunk/openofficeconverter/src/main/java/net/components4oaw/openofficeconverter/OpenOfficeConverter.java
trunk/openofficeconverter/src/test/java/net/components4oaw/openofficeconverter/OpenOfficeConverterTest.java
Modified: trunk/openofficeconverter/pom.xml
===================================================================
--- trunk/openofficeconverter/pom.xml 2007-08-25 19:56:15 UTC (rev 23)
+++ trunk/openofficeconverter/pom.xml 2007-08-25 19:56:26 UTC (rev 24)
@@ -53,15 +53,6 @@
</windowtitle>
</configuration>
</plugin>
- <plugin>
- <groupId>org.codehaus.mojo</groupId>
- <artifactId>cobertura-maven-plugin</artifactId>
- <configuration>
- <formats>
- <format>html</format>
- </formats>
- </configuration>
- </plugin>
</plugins>
</reporting>
Modified: trunk/openofficeconverter/src/main/java/net/components4oaw/openofficeconverter/OpenOfficeConverter.java
===================================================================
--- trunk/openofficeconverter/src/main/java/net/components4oaw/openofficeconverter/OpenOfficeConverter.java 2007-08-25 19:56:15 UTC (rev 23)
+++ trunk/openofficeconverter/src/main/java/net/components4oaw/openofficeconverter/OpenOfficeConverter.java 2007-08-25 19:56:26 UTC (rev 24)
@@ -38,7 +38,6 @@
if (getInputFile() == null || !WfCHelper.isLegalFile(getInputFile())
|| getOutputFile() == null)
arg0.addError("Input- or OutputFile not set correctly.");
-
}
public void invoke(WorkflowContext arg0, ProgressMonitor arg1, Issues arg2) {
Modified: trunk/openofficeconverter/src/test/java/net/components4oaw/openofficeconverter/OpenOfficeConverterTest.java
===================================================================
--- trunk/openofficeconverter/src/test/java/net/components4oaw/openofficeconverter/OpenOfficeConverterTest.java 2007-08-25 19:56:15 UTC (rev 23)
+++ trunk/openofficeconverter/src/test/java/net/components4oaw/openofficeconverter/OpenOfficeConverterTest.java 2007-08-25 19:56:26 UTC (rev 24)
@@ -1,13 +1,19 @@
package net.components4oaw.openofficeconverter;
+import static org.junit.Assert.assertTrue;
import org.junit.After;
import org.junit.AfterClass;
import org.junit.Before;
import org.junit.BeforeClass;
+import org.junit.Test;
+import org.openarchitectureware.workflow.issues.Issues;
+import org.openarchitectureware.workflow.issues.IssuesImpl;
public class OpenOfficeConverterTest {
+ private OpenOfficeConverter conv;
+
@BeforeClass
public static void setUpBeforeClass() throws Exception {
}
@@ -18,10 +24,22 @@
@Before
public void setUp() throws Exception {
+ conv = new OpenOfficeConverter();
}
@After
public void tearDown() throws Exception {
}
+ /**
+ * Test that the workflow fails if the input parameters are not specified.
+ */
+ @Test
+ public void testCheckConfiguration() {
+ conv.setInputFile(null);
+ conv.setOutputFile(null);
+ Issues issues = new IssuesImpl();
+ conv.checkConfiguration(issues);
+ assertTrue(issues.hasErrors());
+ }
}
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mk...@us...> - 2007-08-27 15:55:02
|
Revision: 25
http://components4oaw.svn.sourceforge.net/components4oaw/?rev=25&view=rev
Author: mklink
Date: 2007-08-25 12:58:09 -0700 (Sat, 25 Aug 2007)
Log Message:
-----------
added to repository by accident
Removed Paths:
-------------
trunk/components4oaw-parent/target/
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mk...@us...> - 2007-08-27 15:42:26
|
Revision: 28
http://components4oaw.svn.sourceforge.net/components4oaw/?rev=28&view=rev
Author: mklink
Date: 2007-08-27 08:42:12 -0700 (Mon, 27 Aug 2007)
Log Message:
-----------
Modified Paths:
--------------
trunk/components4oaw-parent/pom.xml
trunk/components4oaw-parent/src/site/apt/index.apt
Added Paths:
-----------
trunk/components4oaw-parent/src/site/apt/repository.apt
Property Changed:
----------------
trunk/components4oaw-parent/
Property changes on: trunk/components4oaw-parent
___________________________________________________________________
Name: svn:ignore
+ target
Modified: trunk/components4oaw-parent/pom.xml
===================================================================
--- trunk/components4oaw-parent/pom.xml 2007-08-26 19:23:00 UTC (rev 27)
+++ trunk/components4oaw-parent/pom.xml 2007-08-27 15:42:12 UTC (rev 28)
@@ -10,7 +10,7 @@
<name>components4oaw</name>
<description>
components4oaw is a collection of components for the MDA
- framework open Architectureware.
+ framework openArchitectureWare.
</description>
<url>http://components4oaw.sourceforge.net/</url>
Modified: trunk/components4oaw-parent/src/site/apt/index.apt
===================================================================
--- trunk/components4oaw-parent/src/site/apt/index.apt 2007-08-26 19:23:00 UTC (rev 27)
+++ trunk/components4oaw-parent/src/site/apt/index.apt 2007-08-27 15:42:12 UTC (rev 28)
@@ -2,7 +2,7 @@
components4oaw is a collection of utilities for the MDA/MDSD framework
{{{http://www.openarchitectureware.org}openArchitectureWare}}. All components
- are made available via maven artefects, to be easily available for developers.
+ are made available via maven2 artifacts, to be easily available for developers.
The whole project is currently in its planning and inception phase, and we are
looking for many contributions.
@@ -20,6 +20,8 @@
* xtend utility function collections
+ * others
+
Modules
The following modules are currently available with the project:
Added: trunk/components4oaw-parent/src/site/apt/repository.apt
===================================================================
--- trunk/components4oaw-parent/src/site/apt/repository.apt (rev 0)
+++ trunk/components4oaw-parent/src/site/apt/repository.apt 2007-08-27 15:42:12 UTC (rev 28)
@@ -0,0 +1,9 @@
+Repository
+
+ The repository can be configured your project POM the following way:
+
+
+ Or, in case you frequently want to access it, it might be useful to add it
+ to your settings.xml file:
+
+
\ No newline at end of file
Property changes on: trunk/components4oaw-parent/src/site/apt/repository.apt
___________________________________________________________________
Name: svn:mime-type
+ text/plain
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|
|
From: <mk...@us...> - 2007-08-26 11:09:00
|
Revision: 16
http://components4oaw.svn.sourceforge.net/components4oaw/?rev=16&view=rev
Author: mklink
Date: 2007-08-25 03:07:20 -0700 (Sat, 25 Aug 2007)
Log Message:
-----------
Modified Paths:
--------------
trunk/components4oaw-parent/pom.xml
trunk/components4oaw-parent/src/site/site.xml
Modified: trunk/components4oaw-parent/pom.xml
===================================================================
--- trunk/components4oaw-parent/pom.xml 2007-08-25 09:05:32 UTC (rev 15)
+++ trunk/components4oaw-parent/pom.xml 2007-08-25 10:07:20 UTC (rev 16)
@@ -1,4 +1,6 @@
-<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
+<project xmlns="http://maven.apache.org/POM/4.0.0"
+ xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
+ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>net.components4oaw</groupId>
<artifactId>components4oaw-parent</artifactId>
@@ -40,9 +42,15 @@
</issueManagement>
<scm>
- <connection>scm:svn:https://components4oaw.svn.sourceforge.net/svnroot/components4oaw/tags/components4oaw-parent-1.0.0</connection>
- <developerConnection>scm:svn:https://components4oaw.svn.sourceforge.net/svnroot/components4oaw/tags/components4oaw-parent-1.0.0</developerConnection>
- <url>http://components4oaw.svn.sourceforge.net/viewvc/components4oaw/tags/components4oaw-parent-1.0.0</url>
+ <connection>
+ scm:svn:https://components4oaw.svn.sourceforge.net/svnroot/components4oaw/tags/components4oaw-parent-1.0.0
+ </connection>
+ <developerConnection>
+ scm:svn:https://components4oaw.svn.sourceforge.net/svnroot/components4oaw/tags/components4oaw-parent-1.0.0
+ </developerConnection>
+ <url>
+ http://components4oaw.svn.sourceforge.net/viewvc/components4oaw/tags/components4oaw-parent-1.0.0
+ </url>
</scm>
<build>
@@ -120,6 +128,7 @@
</plugins>
</reporting>
+
<distributionManagement>
<repository>
<id>components4oaw.rep</id>
Modified: trunk/components4oaw-parent/src/site/site.xml
===================================================================
--- trunk/components4oaw-parent/src/site/site.xml 2007-08-25 09:05:32 UTC (rev 15)
+++ trunk/components4oaw-parent/src/site/site.xml 2007-08-25 10:07:20 UTC (rev 16)
@@ -1,14 +1,14 @@
<?xml version="1.0" encoding="ISO-8859-1"?>
<project name="${project.name}">
- <!-- <skin>
- <groupId>org.fornax</groupId>
- <artifactId>fornax-site-skin</artifactId>
- <version>1.0.0</version>
- </skin>
- -->
- <publishDate position="navigation-bottom" format="MM-dd-yy" />
+ <skin>
+ <groupId>org.apache.maven.skins</groupId>
+ <artifactId>maven-stylus-skin</artifactId>
+ </skin>
+
+ <publishDate position="navigation-top" format="MM-dd-yy" />
+
<bannerLeft>
<name>${project.name}</name>
<!--src>images/fornax_logo.png</src -->
@@ -19,8 +19,15 @@
<body>
<menu ref="parent" inherit="top" />
<menu ref="modules" inherit="top" />
- <menu ref="reports" inherit="bottom" />
-
+ <menu name="External links">
+ <item name="oaw"
+ href="http://www.openarchitectureware.org/" />
+ <item name="fornax" href="http://www.fornax-platform.org/" />
+ <item name="sourceforge" href="http://sourceforge.net/projects/components4oaw"/>
+ </menu>
+ <menu name="Repository">
+ <item name="components4oaw" href="http://components4oaw.sourceforge.net/m2/repository/" />
+ </menu>
${reports}
</body>
</project>
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|