-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(java): tiles-autotag (#129)
- Loading branch information
1 parent
1640f56
commit 4296b46
Showing
154 changed files
with
13,085 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
FROM ubuntu:22.04 | ||
|
||
RUN export DEBIAN_FRONTEND=noninteractive \ | ||
&& apt-get update \ | ||
&& apt-get install -y software-properties-common \ | ||
&& add-apt-repository ppa:deadsnakes/ppa \ | ||
&& apt-get update \ | ||
&& apt-get install -y \ | ||
build-essential \ | ||
git \ | ||
vim \ | ||
jq \ | ||
&& apt-get autoremove -y && apt-get clean -y && rm -rf /var/lib/apt/list/* | ||
|
||
RUN apt-get -y install sudo \ | ||
openjdk-8-jdk \ | ||
maven | ||
|
||
RUN bash -c "echo 2 | update-alternatives --config java" | ||
|
||
COPY src /workspace | ||
WORKDIR /workspace | ||
|
||
RUN mvn install -V -B -Denforcer.skip=true -Dcheckstyle.skip=true -Dcobertura.skip=true -Drat.skip=true -Dlicense.skip=true -Dfindbugs.skip=true -Dgpg.skip=true -Dskip.npm=true -Dskip.gulp=true -Dskip.bower=true -Drat.numUnapprovedLicenses=100 -DskipTests=true -DskipITs=true -Dtest=None -DfailIfNoTests=false | ||
|
||
RUN mvn test -V -B -Denforcer.skip=true -Dcheckstyle.skip=true -Dcobertura.skip=true -Drat.skip=true -Dlicense.skip=true -Dfindbugs.skip=true -Dgpg.skip=true -Dskip.npm=true -Dskip.gulp=true -Dskip.bower=true -Drat.numUnapprovedLicenses=100 | ||
|
||
ENV TZ=Asia/Seoul |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
FreeMarker 1.x was released under the LGPL license. Later, by community | ||
consensus, we have switched over to a BSD-style license. As of FreeMarker | ||
2.2pre1, the original author, Benjamin Geer, has relinquished the copyright in | ||
behalf of Visigoth Software Society. The current copyright holder is the | ||
Visigoth Software Society. | ||
|
||
------------------------------------------------------------------------------ | ||
Copyright (c) 2003 The Visigoth Software Society. All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are met: | ||
|
||
1. Redistributions of source code must retain the above copyright notice, | ||
this list of conditions and the following disclaimer. | ||
|
||
2. The end-user documentation included with the redistribution, if any, must | ||
include the following acknowlegement: | ||
"This product includes software developed by the | ||
Visigoth Software Society (http://www.visigoths.org/)." | ||
Alternately, this acknowlegement may appear in the software itself, if and | ||
wherever such third-party acknowlegements normally appear. | ||
|
||
3. Neither the name "FreeMarker", "Visigoth", nor any of the names of the | ||
project contributors may be used to endorse or promote products derived | ||
from this software without prior written permission. For written | ||
permission, please contact [email protected]. | ||
|
||
4. Products derived from this software may not be called "FreeMarker" or | ||
"Visigoth" nor may "FreeMarker" or "Visigoth" appear in their names | ||
without prior written permission of the Visigoth Software Society. | ||
|
||
THIS SOFTWARE IS PROVIDED ``AS IS'' AND ANY EXPRESSED OR IMPLIED WARRANTIES, | ||
INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND | ||
FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE | ||
VISIGOTH SOFTWARE SOCIETY OR ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, | ||
INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, | ||
BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, | ||
DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY | ||
OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING | ||
NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, | ||
EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. | ||
------------------------------------------------------------------------------ | ||
|
||
This software consists of voluntary contributions made by many individuals on | ||
behalf of the Visigoth Software Society. For more information on the Visigoth | ||
Software Society, please see http://www.visigoths.org/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
Apache Tiles Autotag | ||
Copyright 1999-2012 The Apache Software Foundation | ||
|
||
This product includes software developed at | ||
The Apache Software Foundation (http://www.apache.org/). | ||
|
||
The binary distribution contains software developed by: | ||
|
||
Visigoth Software Society (Freemarker): http://freemarker.org/ | ||
Codehaus (QDox, XStream): http://mvel.codehaus.org/ | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
Copyright (c) 2003-2006, Joe Walnes | ||
Copyright (c) 2006-2009, XStream Committers | ||
All rights reserved. | ||
|
||
Redistribution and use in source and binary forms, with or without | ||
modification, are permitted provided that the following conditions are met: | ||
|
||
Redistributions of source code must retain the above copyright notice, this list of | ||
conditions and the following disclaimer. Redistributions in binary form must reproduce | ||
the above copyright notice, this list of conditions and the following disclaimer in | ||
the documentation and/or other materials provided with the distribution. | ||
|
||
Neither the name of XStream nor the names of its contributors may be used to endorse | ||
or promote products derived from this software without specific prior written | ||
permission. | ||
|
||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY | ||
EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES | ||
OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT | ||
SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, | ||
INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED | ||
TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR | ||
BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN | ||
CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY | ||
WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH | ||
DAMAGE. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,182 @@ | ||
<?xml version="1.0"?> | ||
<!-- | ||
$Id: pom.xml 1333561 2012-05-03 17:24:51Z nlebas $ | ||
Licensed to the Apache Software Foundation (ASF) under one or more | ||
contributor license agreements. See the NOTICE file distributed with | ||
this work for additional information regarding copyright ownership. | ||
The ASF licenses this file to You 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. | ||
--> | ||
|
||
<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>org.apache.tiles</groupId> | ||
<artifactId>tiles-autotag-assembly</artifactId> | ||
<packaging>pom</packaging> | ||
<name>Tiles Autotag Assembly</name> | ||
<description>Tiles Autotag Assembly: assembles artifact to produce distributions. | ||
</description> | ||
|
||
<parent> | ||
<groupId>org.apache.tiles</groupId> | ||
<artifactId>tiles-autotag</artifactId> | ||
<version>1.3-SNAPSHOT</version> | ||
</parent> | ||
|
||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-assembly-plugin</artifactId> | ||
<version>3.1.0</version> | ||
<configuration> | ||
<descriptors> | ||
<descriptor>src/main/assembly/bin.xml</descriptor> | ||
<descriptor>src/main/assembly/docs.xml</descriptor> | ||
<descriptor>src/main/assembly/src.xml</descriptor> | ||
</descriptors> | ||
<finalName>tiles-autotag-${project.version}</finalName> | ||
<outputDirectory>target/assembly/out</outputDirectory> | ||
<workDirectory>target/assembly/work</workDirectory> | ||
<tarLongFileMode>gnu</tarLongFileMode> | ||
</configuration> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
<profiles> | ||
<profile> | ||
<id>apache-release</id> | ||
<build> | ||
<plugins> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-assembly-plugin</artifactId> | ||
<version>3.1.0</version> | ||
<executions> | ||
<execution> | ||
<id>make-assembly</id> | ||
<goals> | ||
<goal>single</goal> | ||
</goals> | ||
<phase>package</phase> | ||
</execution> | ||
</executions> | ||
<configuration> | ||
<descriptors> | ||
<descriptor>src/main/assembly/bin.xml</descriptor> | ||
<descriptor>src/main/assembly/docs.xml</descriptor> | ||
<descriptor>src/main/assembly/src.xml</descriptor> | ||
</descriptors> | ||
<tarLongFileMode>gnu</tarLongFileMode> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-deploy-plugin</artifactId> | ||
<configuration> | ||
<skip>true</skip> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>net.nicoulaj.maven.plugins</groupId> | ||
<artifactId>checksum-maven-plugin</artifactId> | ||
<version>1.6</version> | ||
<executions> | ||
<execution> | ||
<goals> | ||
<goal>artifacts</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
<configuration> | ||
<attachChecksums>true</attachChecksums> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-gpg-plugin</artifactId> | ||
<configuration> | ||
<ascDirectory>${project.build.directory}/..</ascDirectory> | ||
</configuration> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
<artifactId>maven-antrun-plugin</artifactId> | ||
<version>1.8</version> | ||
<executions> | ||
<execution> | ||
<phase>deploy</phase> | ||
<goals> | ||
<goal>run</goal> | ||
</goals> | ||
<configuration> | ||
<tasks> | ||
<mkdir dir="${project.build.directory}/assemblies" /> | ||
<echo message="Here I am!" /> | ||
<copy todir="${project.build.directory}/assemblies"> | ||
<fileset dir="${settings.localRepository}/org/apache/tiles/${project.artifactId}/${project.version}"> | ||
<include name="${project.artifactId}-${project.version}-*.zip*" /> | ||
<include name="${project.artifactId}-${project.version}-*.tar.gz*" /> | ||
<exclude name="${project.artifactId}-${project.version}-source-release.*" /> | ||
</fileset> | ||
<mapper type="glob" from="${project.artifactId}-*" to="tiles-autotag-*" /> | ||
</copy> | ||
</tasks> | ||
</configuration> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</profile> | ||
</profiles> | ||
|
||
<dependencies> | ||
|
||
<dependency> | ||
<groupId>org.apache.tiles</groupId> | ||
<artifactId>tiles-autotag-core</artifactId> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.apache.tiles</groupId> | ||
<artifactId>tiles-autotag-core-runtime</artifactId> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.apache.tiles</groupId> | ||
<artifactId>tiles-autotag-jsp</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.apache.tiles</groupId> | ||
<artifactId>tiles-autotag-freemarker</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.apache.tiles</groupId> | ||
<artifactId>tiles-autotag-velocity</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
|
||
<dependency> | ||
<groupId>org.apache.tiles.autotag.plugin</groupId> | ||
<artifactId>maven-autotag-plugin</artifactId> | ||
<version>${project.version}</version> | ||
</dependency> | ||
|
||
</dependencies> | ||
|
||
</project> |
53 changes: 53 additions & 0 deletions
53
Java-base/tiles-autotag/src/assembly/src/main/assembly/bin.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,53 @@ | ||
<!-- | ||
Licensed to the Apache Software Foundation (ASF) under one or more | ||
contributor license agreements. See the NOTICE file distributed with | ||
this work for additional information regarding copyright ownership. | ||
The ASF licenses this file to You 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. | ||
--> | ||
<assembly> | ||
<id>bin</id> | ||
<formats> | ||
<format>tar.gz</format> | ||
<format>zip</format> | ||
</formats> | ||
<includeSiteDirectory>false</includeSiteDirectory> | ||
<dependencySets> | ||
<dependencySet> | ||
<outputDirectory>/lib</outputDirectory> | ||
<outputFileNameMapping>${artifact.artifactId}-${artifact.version}${dashClassifier?}.${artifact.extension}</outputFileNameMapping> | ||
<excludes> | ||
<exclude>org.apache.tiles:*</exclude> | ||
<exclude>org.apache.tiles.autotag.plugin:*</exclude> | ||
</excludes> | ||
</dependencySet> | ||
<dependencySet> | ||
<outputDirectory>/</outputDirectory> | ||
<outputFileNameMapping>${artifact.artifactId}-${artifact.version}${dashClassifier?}.${artifact.extension}</outputFileNameMapping> | ||
<includes> | ||
<include>org.apache.tiles:*</include> | ||
<include>org.apache.tiles.autotag.plugin:*</include> | ||
</includes> | ||
</dependencySet> | ||
</dependencySets> | ||
|
||
<fileSets> | ||
<fileSet> | ||
<directory>..</directory> | ||
<outputDirectory>/</outputDirectory> | ||
<includes> | ||
<include>*LICENSE.*</include> | ||
<include>NOTICE.txt</include> | ||
</includes> | ||
</fileSet> | ||
</fileSets> | ||
</assembly> |
41 changes: 41 additions & 0 deletions
41
Java-base/tiles-autotag/src/assembly/src/main/assembly/docs.xml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
<!-- | ||
Licensed to the Apache Software Foundation (ASF) under one or more | ||
contributor license agreements. See the NOTICE file distributed with | ||
this work for additional information regarding copyright ownership. | ||
The ASF licenses this file to You 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. | ||
--> | ||
<assembly> | ||
<id>docs</id> | ||
<formats> | ||
<format>tar.gz</format> | ||
<format>zip</format> | ||
</formats> | ||
<includeSiteDirectory>false</includeSiteDirectory> | ||
<dependencySets> | ||
</dependencySets> | ||
|
||
<fileSets> | ||
<fileSet> | ||
<directory>..</directory> | ||
<outputDirectory>/</outputDirectory> | ||
<includes> | ||
<include>LICENSE.txt</include> | ||
<include>NOTICE.txt</include> | ||
</includes> | ||
</fileSet> | ||
<fileSet> | ||
<directory>../target/site/apidocs</directory> | ||
<outputDirectory>apidocs</outputDirectory> | ||
</fileSet> | ||
</fileSets> | ||
</assembly> |
Oops, something went wrong.