Skip to content

Commit

Permalink
#44 Remove JExcelAPI Dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
benoitx committed Jul 24, 2018
1 parent a72afce commit 77e3c7e
Show file tree
Hide file tree
Showing 16 changed files with 1,108 additions and 575 deletions.
149 changes: 149 additions & 0 deletions flatpack-excel/pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,149 @@
<?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/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>net.sf.flatpack</groupId>
<artifactId>flatpack-parent</artifactId>
<version>4.0.3-SNAPSHOT</version>
</parent>


<artifactId>flatpack-excel</artifactId>
<name>FlatPack Excel</name>
<packaging>bundle</packaging> <!-- (1) OSGi -->

<description>Simple utility to handle Excel.</description>
<build>
<sourceDirectory>src/main/java</sourceDirectory>
<testSourceDirectory>src/test/java</testSourceDirectory>
<resources>
<resource>
<directory>src/main/java</directory>
<includes>
<include>**/*.dtd</include>
<include>**/*.properties</include>
</includes>
</resource>
</resources>
<testResources>
<testResource>
<directory>src/test/resources</directory>
<includes>
<include>**/*.xml</include>
</includes>
</testResource>
</testResources>
<plugins>
<plugin>
<groupId>org.apache.felix</groupId>
<artifactId>maven-bundle-plugin</artifactId>
<version>3.0.1</version>
<extensions>true</extensions>
<configuration>
<instructions>
<Export-Package>net.sf.flatpack.*;version="${project.version}"</Export-Package>
<Private-Package />
<Bundle-SymbolicName>${project.artifactId}</Bundle-SymbolicName>
<Bundle-Version>${project.version}</Bundle-Version>
<Bundle-RequiredExecutionEnvironment>J2SE-1.4</Bundle-RequiredExecutionEnvironment>
</instructions>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.0.2</version>
<configuration>
<archive>
<manifestEntries>
<Automatic-Module-Name>net.sf.flatpack.excel</Automatic-Module-Name>
</manifestEntries>
</archive>
</configuration>
<executions>
<execution>
<goals>
<goal>test-jar</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.7.0</version>
<configuration>
<showDeprecation>true</showDeprecation>
<source>1.8</source>
<target>1.8</target>
</configuration>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>3.0.1</version>
<configuration>
<additionalparam>"-breakiterator"</additionalparam>
</configuration>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19.1</version>
<configuration>
<!--
<argLine>-ea</argLine>
-->
<printSummary>false</printSummary>
<reportFormat>plain</reportFormat>
<testFailureIgnore>true</testFailureIgnore>
<useFile>false</useFile>
<excludes>
<exclude>**/Abstract*.java</exclude>
</excludes>
<includes>
<include>**/*Test.java</include>
</includes>
</configuration>
</plugin>
</plugins>
</build>
<dependencies>
<dependency>
<groupId>net.sourceforge.jexcelapi</groupId>
<artifactId>jxl</artifactId>
<version>2.6</version>
<scope>provided</scope>
<optional>true</optional>
</dependency>
<dependency>
<groupId>net.sf.flatpack</groupId>
<artifactId>flatpack</artifactId>
<version>4.0.3-SNAPSHOT</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.21</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-simple</artifactId>
<version>1.7.21</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.assertj</groupId>
<artifactId>assertj-core</artifactId>
<version>3.10.0</version>
<scope>test</scope>
</dependency>
</dependencies>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
CONDITIONS OF ANY KIND, either express or implied. See the License for
the specific language governing permissions and limitations under the License.
*/
package net.sf.flatpack.util;
package net.sf.flatpack.excel;

import java.io.File;
import java.io.IOException;
Expand All @@ -30,6 +30,7 @@
import jxl.write.WritableWorkbook;
import jxl.write.WriteException;
import net.sf.flatpack.DataSet;
import net.sf.flatpack.util.FPConstants;

/**
* Converts a DataSet object into an excel spreadsheet.
Expand Down
47 changes: 47 additions & 0 deletions flatpack-excel/src/site/resources/css/site.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
#banner {
background: transparent url(../images/banner_background.jpg) repeat scroll 0 0;
height: 80px;
}

h2 {
color: #2872B4;
}

h3 {
color: #2872B4;
background-color: #FFFFFF;
background-image: url(../images/h3_white.png);
border-bottom: 1px solid #CCCCCC;
}

h4 {
color: #2872B4;
font-size: 12px;
font-weight: bold;
}

#navcolumn h5 {
color: #2872B4;
border-bottom: 1px solid #CCCCCC;
}

#footer {
border-top: 1px solid #2872B4;
}

#sonar {
padding: 20px 20px 20px 20px;
text-align: left;
}

#ohloh {
}

#cocomo {
float:left;
margin:10px 0 0 10px;
}

#factoids {
margin:0 0 10px 320px;
}
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 38 additions & 0 deletions flatpack-excel/src/site/site.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
<?xml version="1.0" encoding="UTF-8"?>

<project name="FlatPack">
<body>
<menu name="FlatPack">
<item name="Main Page" href="../index.html" />
<item name="Examples" href="../flatpack-examples/index.html" />
<item name="Documentation" href="../documentation/index.html" />
</menu>
<!--
<links>
<item name="FlatPack on SourceForge.net" href="http://sourceforge.net/projects/flatpack" />
<item name="Overall project" href="../index.html" />
<item name="Examples" href="../flatpack-examples/index.html" />
</links>
-->
<menu name="Links">
<item name="QALab" href="http://qalab.sourceforge.net/" />
<item name="ObjectLab Kit" href="http://objectlabkit.sourceforge.net/" />
<item name="ObjectLab" href="http://www.objectlab.co.uk" />
</menu>
<footer>
<div style="vertical-align:middle">
<a href="http://sourceforge.net/projects/flatpack">
<img
src="http://sflogo.sourceforge.net/sflogo.php?group_id=127761&amp;type=13"
width="120" height="30" border="0"
alt="Get FlatPack Java API For Flat Files at SourceForge.net. Fast, secure and Free Open Source software downloads" />
</a>
</div>
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
</script>
<script type="text/javascript">
_uacct = "UA-615747-7"; urchinTracker();
</script>
</footer>
</body>
</project>

0 comments on commit 77e3c7e

Please sign in to comment.