From d2d7a2cd782bfe4a3f91810671ee682e032ebf4d Mon Sep 17 00:00:00 2001 From: Daniel Pocock Date: Wed, 27 Aug 2014 19:13:52 +0000 Subject: [PATCH] Add Main-Class for cpp-build tools JAR. - Adds the manifest entries to the basic tools JAR. - Creates a symlink named like the dependencies JAR that was used previously. - Creates a symlink to the protobuf JAR. In the manifest, the classpath reference to the protobuf JAR is a relative filename. The second symbolic link satisfies that by linking to the installed JAR. This is only needed for people building packages People who build normally with Maven will find that "mvn package" still produces the original tools JAR which has its own Main-Class attribute Author: daniel@pocock.pro --- debian/rules | 2 ++ tools/java/cpp-build/pom.xml | 12 ++++++++++++ 2 files changed, 14 insertions(+) diff --git a/debian/rules b/debian/rules index 7e24879f5..e4f1f8209 100755 --- a/debian/rules +++ b/debian/rules @@ -62,6 +62,8 @@ configure/libphonenumber6:: # ln -s /usr/share/java/junit4.jar java/lib/junit-4.8.1.jar # $(ANT) -f $(JAVA_BUILD).xml jar build/libphonenumber6:: + ln -sf cpp-build-1.0-SNAPSHOT.jar tools/java/cpp-build/target/cpp-build-1.0-SNAPSHOT-jar-with-dependencies.jar + ln -sf /usr/share/java/protobuf.jar tools/java/cpp-build/target/protobuf-java-debian.jar $(MAKE) -C $(CPP_BUILD) phonenumber phonenumber-shared #override_dh_auto_test: diff --git a/tools/java/cpp-build/pom.xml b/tools/java/cpp-build/pom.xml index a60798c91..abe3cac2e 100644 --- a/tools/java/cpp-build/pom.xml +++ b/tools/java/cpp-build/pom.xml @@ -91,6 +91,18 @@ + + org.apache.maven.plugins + maven-jar-plugin + + + + true + com.google.i18n.phonenumbers.EntryPoint + + + +