This is an automated email from the ASF dual-hosted git repository. markt pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/tomcat-jakartaee-migration.git
The following commit(s) were added to refs/heads/master by this push: new 0419aa6 Add a build script. Experiment with Maven. 0419aa6 is described below commit 0419aa64562cf7d1f014eebaaa3840a96b89acd4 Author: Mark Thomas <ma...@apache.org> AuthorDate: Mon Jan 13 14:55:38 2020 +0000 Add a build script. Experiment with Maven. --- .gitignore | 2 +- pom.xml | 103 ++++++++++++++++++++++++++++++++++++++++++++ src/assembly/bin.xml | 33 ++++++++++++++ src/main/scripts/migrate.sh | 7 +++ 4 files changed, 144 insertions(+), 1 deletion(-) diff --git a/.gitignore b/.gitignore index 107422a..beef00d 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,4 @@ .classpath .project .settings -bin \ No newline at end of file +target diff --git a/pom.xml b/pom.xml new file mode 100644 index 0000000..d2e65e7 --- /dev/null +++ b/pom.xml @@ -0,0 +1,103 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + 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/xsd/maven-4.0.0.xsd"> + <modelVersion>4.0.0</modelVersion> + + <parent> + <groupId>org.apache</groupId> + <artifactId>apache</artifactId> + <version>22</version> + </parent> + + <groupId>org.apache.tomcat</groupId> + <artifactId>jakartaee-migration</artifactId> + <version>0.0.1-SNAPSHOT</version> + + <description> + This tool is a work in progress. + The aim of the tool is to take a web application written for Java EE 8 that + runs on Apache Tomcat 9 and convert it automatically so it runs on Apache + Tomcat 10 which implements Jakarta EE 9. + </description> + <!-- TODO: Update this once the web site is updated. --> + <url>https://tomcat.apache.org</url> + <mailingLists> + <mailingList> + <name>Apache Tomcat Announce List</name> + <subscribe>announce-subscr...@tomcat.apache.org</subscribe> + <unsubscribe>announce-unsubscr...@tomcat.apache.org</unsubscribe> + <archive>https://lists.apache.org/list.html?annou...@tomcat.apache.org</archive> + </mailingList> + <mailingList> + <name>Apache Tomcat Developer List</name> + <subscribe>dev-subscr...@tomcat.apache.org</subscribe> + <unsubscribe>dev-unsubscr...@tomcat.apache.org</unsubscribe> + <post>dev@tomcat.apache.org</post> + <archive>https://lists.apache.org/list.html?dev@tomcat.apache.org</archive> + </mailingList> + <mailingList> + <name>Apache Tomcat Users List</name> + <subscribe>users-subscr...@tomcat.apache.org</subscribe> + <unsubscribe>users-unsubscr...@tomcat.apache.org</unsubscribe> + <post>us...@tomcat.apache.org</post> + <archive>https://lists.apache.org/list.html?us...@tomcat.apache.org</archive> + </mailingList> + </mailingLists> + + <properties> + <maven.compiler.source>8</maven.compiler.source> + <maven.compiler.target>8</maven.compiler.target> + </properties> + + <dependencies> + <dependency> + <groupId>org.apache.bcel</groupId> + <artifactId>bcel</artifactId> + <version>6.4.1</version> + </dependency> + </dependencies> + + <build> + <resources> + <resource> + <directory>src/main/resources</directory> + <filtering>true</filtering> + </resource> + <resource> + <directory>src/main/scripot</directory> + <targetPath>bin</targetPath> + </resource> + </resources> + <plugins> + <plugin> + <!-- NOTE: We don't need a groupId specification because the group is + org.apache.maven.plugins ...which is assumed by default. + --> + <artifactId>maven-assembly-plugin</artifactId> + <version>3.2.0</version> + <configuration> + <descriptors> + <descriptor>src/assembly/bin.xml</descriptor> + </descriptors> + </configuration> + </plugin> + </plugins> + </build> + +</project> \ No newline at end of file diff --git a/src/assembly/bin.xml b/src/assembly/bin.xml new file mode 100644 index 0000000..79f13c0 --- /dev/null +++ b/src/assembly/bin.xml @@ -0,0 +1,33 @@ +<assembly xmlns="http://maven.apache.org/ASSEMBLY/2.0.0" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://maven.apache.org/ASSEMBLY/2.0.0 http://maven.apache.org/xsd/assembly-2.0.0.xsd"> + <id>bin</id> + <formats> + <format>tar.gz</format> + <format>zip</format> + </formats> + <fileSets> + <fileSet> + <directory>${project.basedir}</directory> + <outputDirectory></outputDirectory> + <includes> + <include>README*</include> + <include>LICENSE*</include> + <include>NOTICE*</include> + </includes> + </fileSet> + <fileSet> + <directory>${project.build.directpry}/bin</directory> + <includes> + <include>*.sh</include> + </includes> + <fileMode>0755</fileMode> + </fileSet> + </fileSets> + <dependencySets> + <dependencySet> + <outputDirectory>lib</outputDirectory> + <useProjectArtifact></useProjectArtifact> + </dependencySet> + </dependencySets> +</assembly> \ No newline at end of file diff --git a/src/main/scripts/migrate.sh b/src/main/scripts/migrate.sh new file mode 100644 index 0000000..3d3004f --- /dev/null +++ b/src/main/scripts/migrate.sh @@ -0,0 +1,7 @@ +#!/bin/sh + +# Assumes current layout of Maven's target directory +cd .. + +# Assumes java is on the path +java -cp lib/* org.apache.tomcat.jakartaee.Migration "$@" --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org