Skip to content

Commit 3c1f3c1

Browse files
author
eugenp
committed
new apache fop project
1 parent 6668c11 commit 3c1f3c1

File tree

11 files changed

+383
-0
lines changed

11 files changed

+383
-0
lines changed

apache-fop/.classpath

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<classpath>
3+
<classpathentry kind="src" output="target/classes" path="src/main/java">
4+
<attributes>
5+
<attribute name="optional" value="true"/>
6+
<attribute name="maven.pomderived" value="true"/>
7+
</attributes>
8+
</classpathentry>
9+
<classpathentry kind="src" output="target/test-classes" path="src/test/java">
10+
<attributes>
11+
<attribute name="optional" value="true"/>
12+
<attribute name="maven.pomderived" value="true"/>
13+
</attributes>
14+
</classpathentry>
15+
<classpathentry excluding="**" kind="src" output="target/classes" path="src/main/resources">
16+
<attributes>
17+
<attribute name="maven.pomderived" value="true"/>
18+
</attributes>
19+
</classpathentry>
20+
<classpathentry excluding="**" kind="src" output="target/test-classes" path="src/test/resources">
21+
<attributes>
22+
<attribute name="maven.pomderived" value="true"/>
23+
</attributes>
24+
</classpathentry>
25+
<classpathentry kind="con" path="org.eclipse.m2e.MAVEN2_CLASSPATH_CONTAINER">
26+
<attributes>
27+
<attribute name="maven.pomderived" value="true"/>
28+
</attributes>
29+
</classpathentry>
30+
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.7">
31+
<attributes>
32+
<attribute name="maven.pomderived" value="true"/>
33+
</attributes>
34+
</classpathentry>
35+
<classpathentry kind="output" path="target/classes"/>
36+
</classpath>
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
2+
<launchConfiguration type="org.eclipse.ant.AntBuilderLaunchConfigurationType">
3+
<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_BUILDER_ENABLED" value="false"/>
4+
<stringAttribute key="org.eclipse.ui.externaltools.ATTR_DISABLED_BUILDER" value="org.eclipse.wst.jsdt.core.javascriptValidator"/>
5+
<mapAttribute key="org.eclipse.ui.externaltools.ATTR_TOOL_ARGUMENTS"/>
6+
<booleanAttribute key="org.eclipse.ui.externaltools.ATTR_TRIGGERS_CONFIGURED" value="true"/>
7+
</launchConfiguration>

apache-fop/.gitignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
*.class
2+
3+
#folders#
4+
/target
5+
/neoDb*
6+
/data
7+
/src/main/webapp/WEB-INF/classes
8+
*/META-INF/*
9+
10+
# Packaged files #
11+
*.jar
12+
*.war
13+
*.ear
14+
15+
# Files generated by integration tests
16+
*.txt

apache-fop/.project

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<projectDescription>
3+
<name>apache-fop</name>
4+
<comment></comment>
5+
<projects>
6+
</projects>
7+
<buildSpec>
8+
<buildCommand>
9+
<name>org.eclipse.jdt.core.javabuilder</name>
10+
<arguments>
11+
</arguments>
12+
</buildCommand>
13+
<buildCommand>
14+
<name>org.eclipse.wst.common.project.facet.core.builder</name>
15+
<arguments>
16+
</arguments>
17+
</buildCommand>
18+
<buildCommand>
19+
<name>org.eclipse.wst.validation.validationbuilder</name>
20+
<arguments>
21+
</arguments>
22+
</buildCommand>
23+
<buildCommand>
24+
<name>org.eclipse.m2e.core.maven2Builder</name>
25+
<arguments>
26+
</arguments>
27+
</buildCommand>
28+
</buildSpec>
29+
<natures>
30+
<nature>org.eclipse.jem.workbench.JavaEMFNature</nature>
31+
<nature>org.eclipse.wst.common.modulecore.ModuleCoreNature</nature>
32+
<nature>org.eclipse.jdt.core.javanature</nature>
33+
<nature>org.eclipse.m2e.core.maven2Nature</nature>
34+
<nature>org.eclipse.wst.common.project.facet.core.nature</nature>
35+
</natures>
36+
</projectDescription>

apache-fop/.springBeans

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<beansProjectDescription>
3+
<version>1</version>
4+
<pluginVersion><![CDATA[3.3.0.201307091516-RELEASE]]></pluginVersion>
5+
<configSuffixes>
6+
<configSuffix><![CDATA[xml]]></configSuffix>
7+
</configSuffixes>
8+
<enableImports><![CDATA[false]]></enableImports>
9+
<configs>
10+
<config>src/main/webapp/WEB-INF/api-servlet.xml</config>
11+
</configs>
12+
<configSets>
13+
</configSets>
14+
</beansProjectDescription>

apache-fop/README.md

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
=========
2+
3+
## Core Java Cookbooks and Examples
4+
5+
### Relevant Articles:
6+
- [Immutable ArrayList in Java](http://www.baeldung.com/java-immutable-list)
7+
- [Java - Reading a Large File Efficiently](http://www.baeldung.com/java-read-lines-large-file)
8+
- [Java InputStream to String](http://www.baeldung.com/convert-input-stream-to-string)
9+

apache-fop/pom.xml

Lines changed: 188 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,188 @@
1+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
2+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
3+
<modelVersion>4.0.0</modelVersion>
4+
<groupId>org.baeldung</groupId>
5+
<artifactId>apache-fop</artifactId>
6+
<version>0.1-SNAPSHOT</version>
7+
8+
<name>apache-fop</name>
9+
10+
<dependencies>
11+
12+
<!-- utils -->
13+
14+
<dependency>
15+
<groupId>com.google.guava</groupId>
16+
<artifactId>guava</artifactId>
17+
<version>${guava.version}</version>
18+
</dependency>
19+
20+
<dependency>
21+
<groupId>org.apache.commons</groupId>
22+
<artifactId>commons-collections4</artifactId>
23+
<version>4.0</version>
24+
</dependency>
25+
26+
<dependency>
27+
<groupId>commons-io</groupId>
28+
<artifactId>commons-io</artifactId>
29+
<version>2.4</version>
30+
</dependency>
31+
32+
<dependency>
33+
<groupId>org.apache.commons</groupId>
34+
<artifactId>commons-lang3</artifactId>
35+
<version>${commons-lang3.version}</version>
36+
</dependency>
37+
38+
<dependency>
39+
<groupId>org.apache.commons</groupId>
40+
<artifactId>commons-math3</artifactId>
41+
<version>3.3</version>
42+
</dependency>
43+
44+
<!-- web -->
45+
46+
<!-- marshalling -->
47+
48+
<dependency>
49+
<groupId>com.fasterxml.jackson.core</groupId>
50+
<artifactId>jackson-databind</artifactId>
51+
<version>${jackson.version}</version>
52+
</dependency>
53+
54+
<!-- logging -->
55+
56+
<dependency>
57+
<groupId>org.slf4j</groupId>
58+
<artifactId>slf4j-api</artifactId>
59+
<version>${org.slf4j.version}</version>
60+
</dependency>
61+
<dependency>
62+
<groupId>ch.qos.logback</groupId>
63+
<artifactId>logback-classic</artifactId>
64+
<version>${logback.version}</version>
65+
<!-- <scope>runtime</scope> -->
66+
</dependency>
67+
<dependency>
68+
<groupId>org.slf4j</groupId>
69+
<artifactId>jcl-over-slf4j</artifactId>
70+
<version>${org.slf4j.version}</version>
71+
<!-- <scope>runtime</scope> --> <!-- some spring dependencies need to compile against jcl -->
72+
</dependency>
73+
<dependency> <!-- needed to bridge to slf4j for projects that use the log4j APIs directly -->
74+
<groupId>org.slf4j</groupId>
75+
<artifactId>log4j-over-slf4j</artifactId>
76+
<version>${org.slf4j.version}</version>
77+
</dependency>
78+
79+
<!-- test scoped -->
80+
81+
<dependency>
82+
<groupId>junit</groupId>
83+
<artifactId>junit-dep</artifactId>
84+
<version>${junit.version}</version>
85+
<scope>test</scope>
86+
</dependency>
87+
88+
<dependency>
89+
<groupId>org.hamcrest</groupId>
90+
<artifactId>hamcrest-core</artifactId>
91+
<version>${org.hamcrest.version}</version>
92+
<scope>test</scope>
93+
</dependency>
94+
<dependency>
95+
<groupId>org.hamcrest</groupId>
96+
<artifactId>hamcrest-library</artifactId>
97+
<version>${org.hamcrest.version}</version>
98+
<scope>test</scope>
99+
</dependency>
100+
101+
<dependency>
102+
<groupId>org.mockito</groupId>
103+
<artifactId>mockito-core</artifactId>
104+
<version>${mockito.version}</version>
105+
<scope>test</scope>
106+
</dependency>
107+
108+
</dependencies>
109+
110+
<build>
111+
<finalName>apache-fop</finalName>
112+
<resources>
113+
<resource>
114+
<directory>src/main/resources</directory>
115+
<filtering>true</filtering>
116+
</resource>
117+
</resources>
118+
119+
<plugins>
120+
121+
<plugin>
122+
<groupId>org.apache.maven.plugins</groupId>
123+
<artifactId>maven-compiler-plugin</artifactId>
124+
<version>${maven-compiler-plugin.version}</version>
125+
<configuration>
126+
<source>1.7</source>
127+
<target>1.7</target>
128+
</configuration>
129+
</plugin>
130+
131+
<plugin>
132+
<groupId>org.apache.maven.plugins</groupId>
133+
<artifactId>maven-surefire-plugin</artifactId>
134+
<version>${maven-surefire-plugin.version}</version>
135+
<configuration>
136+
<excludes>
137+
<exclude>**/*IntegrationTest.java</exclude>
138+
</excludes>
139+
</configuration>
140+
</plugin>
141+
142+
</plugins>
143+
144+
</build>
145+
146+
<properties>
147+
<!-- Spring -->
148+
<org.springframework.version>4.1.2.RELEASE</org.springframework.version>
149+
<org.springframework.security.version>3.2.5.RELEASE</org.springframework.security.version>
150+
151+
<!-- persistence -->
152+
<hibernate.version>4.3.7.Final</hibernate.version>
153+
<mysql-connector-java.version>5.1.34</mysql-connector-java.version>
154+
155+
<!-- marshalling -->
156+
<jackson.version>2.4.2</jackson.version>
157+
158+
<!-- logging -->
159+
<org.slf4j.version>1.7.7</org.slf4j.version>
160+
<logback.version>1.1.2</logback.version>
161+
162+
<!-- various -->
163+
<hibernate-validator.version>5.1.3.Final</hibernate-validator.version>
164+
165+
<!-- util -->
166+
<guava.version>17.0</guava.version> <!-- upgrade to 18.0 -->
167+
<commons-lang3.version>3.3.2</commons-lang3.version>
168+
169+
<!-- testing -->
170+
<org.hamcrest.version>1.3</org.hamcrest.version>
171+
<junit.version>4.11</junit.version>
172+
<mockito.version>1.10.8</mockito.version>
173+
174+
<httpcore.version>4.3.3</httpcore.version>
175+
<httpclient.version>4.3.6</httpclient.version>
176+
177+
<rest-assured.version>2.4.0</rest-assured.version>
178+
179+
<!-- maven plugins -->
180+
<maven-compiler-plugin.version>3.2</maven-compiler-plugin.version>
181+
<maven-war-plugin.version>2.5</maven-war-plugin.version>
182+
<maven-surefire-plugin.version>2.17</maven-surefire-plugin.version>
183+
<maven-resources-plugin.version>2.7</maven-resources-plugin.version>
184+
<cargo-maven2-plugin.version>1.4.10</cargo-maven2-plugin.version>
185+
186+
</properties>
187+
188+
</project>
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<configuration>
2+
3+
<appender name="STDOUT" class="ch.qos.logback.core.ConsoleAppender">
4+
<encoder>
5+
<pattern>web - %date [%thread] %-5level %logger{36} - %message%n
6+
</pattern>
7+
</encoder>
8+
</appender>
9+
10+
<!-- <logger name="org.springframework" level="WARN" /> -->
11+
12+
<root level="INFO">
13+
<appender-ref ref="STDOUT" />
14+
</root>
15+
16+
</configuration>
Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<beans xmlns="http://www.springframework.org/schema/beans"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-4.1.xsd" >
5+
6+
</beans>
Lines changed: 42 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
3+
xmlns="http://java.sun.com/xml/ns/javaee" xmlns:web="http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
4+
xsi:schemaLocation="
5+
http://java.sun.com/xml/ns/javaee
6+
http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd"
7+
id="WebApp_ID" version="3.0">
8+
9+
<display-name>Spring MVC Application</display-name>
10+
11+
<!-- Spring root -->
12+
<context-param>
13+
<param-name>contextClass</param-name>
14+
<param-value>
15+
org.springframework.web.context.support.AnnotationConfigWebApplicationContext
16+
</param-value>
17+
</context-param>
18+
<context-param>
19+
<param-name>contextConfigLocation</param-name>
20+
<param-value>org.baeldung.config</param-value>
21+
</context-param>
22+
23+
<listener>
24+
<listener-class>org.springframework.web.context.ContextLoaderListener</listener-class>
25+
</listener>
26+
27+
<!-- Spring child -->
28+
<servlet>
29+
<servlet-name>api</servlet-name>
30+
<servlet-class>org.springframework.web.servlet.DispatcherServlet</servlet-class>
31+
<load-on-startup>1</load-on-startup>
32+
</servlet>
33+
<servlet-mapping>
34+
<servlet-name>api</servlet-name>
35+
<url-pattern>/</url-pattern>
36+
</servlet-mapping>
37+
38+
<welcome-file-list>
39+
<welcome-file />
40+
</welcome-file-list>
41+
42+
</web-app>

0 commit comments

Comments
 (0)