forked from Guardsquare/proguard
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
ProGuard
committed
Feb 4, 2018
1 parent
9d4660e
commit b0db59b
Showing
973 changed files
with
51,505 additions
and
17,968 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
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,16 @@ | ||
// Gradle build script for the ProGuard annotations. | ||
|
||
apply plugin: 'java' | ||
|
||
sourceSets.main { | ||
java { | ||
srcDirs = ['src'] | ||
} | ||
resources { | ||
srcDirs = ['src'] | ||
include '**/*.properties' | ||
include '**/*.gif' | ||
include '**/*.png' | ||
include '**/*.pro' | ||
} | ||
} |
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,12 @@ | ||
#!/bin/bash | ||
# | ||
# GNU/Linux build script for ProGuard. | ||
|
||
cd $(dirname "$0") | ||
|
||
source ../buildscripts/functions.sh | ||
|
||
MAIN_CLASS=proguard.annotation.* | ||
|
||
compile $MAIN_CLASS && \ | ||
createjar "$ANNOTATIONS_JAR" || exit 1 |
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,47 @@ | ||
<!-- Ant build script for the ProGuard annotations. --> | ||
|
||
<project name = "annotations" | ||
default = "dist"> | ||
|
||
<target name = "clean"> | ||
<delete quiet = "true"> | ||
<fileset dir = "out"/> | ||
</delete> | ||
</target> | ||
|
||
<target name = "out"> | ||
<mkdir dir = "out"/> | ||
</target> | ||
|
||
<target name = "compile" depends = "out"> | ||
<javac nowarn = "true" | ||
deprecation = "false" | ||
includeantruntime = "false" | ||
srcdir = "src" | ||
destdir = "out" | ||
includes = "proguard/annotation/*.java"> | ||
<compilerarg value = "-Xlint:none"/> | ||
</javac> | ||
</target> | ||
|
||
<target name = "resources" depends = "out"> | ||
<copy todir = "out"> | ||
<fileset dir = "src"> | ||
<include name = "proguard/*.properties"/> | ||
<include name = "proguard/*.png"/> | ||
<include name = "proguard/*.gif"/> | ||
<include name = "proguard/*.pro"/> | ||
</fileset> | ||
</copy> | ||
</target> | ||
|
||
<target name = "lib"> | ||
<mkdir dir = "../lib"/> | ||
</target> | ||
|
||
<target name = "dist" depends = "compile,resources,lib"> | ||
<jar jarfile = "../lib/annotations.jar" | ||
basedir = "out"/> | ||
</target> | ||
|
||
</project> |
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,7 @@ | ||
# GNU/Linux makefile for the ProGuard annotations. | ||
|
||
MAIN_CLASS = proguard/annotation/* | ||
CLASSPATH = | ||
TARGET = annotations | ||
|
||
include ../buildscripts/functions.mk |
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,34 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<!-- Maven POM file for the ProGuard annotations. --> | ||
<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> | ||
<parent> | ||
<groupId>net.sf.proguard</groupId> | ||
<artifactId>proguard-parent</artifactId> | ||
<version>6.0</version> | ||
<relativePath>../buildscripts/pom.xml</relativePath> | ||
</parent> | ||
<artifactId>proguard-annotations</artifactId> | ||
<name>[${project.groupId}] ${project.artifactId}</name> | ||
|
||
<build> | ||
<sourceDirectory>src</sourceDirectory> | ||
<plugins> | ||
<plugin> | ||
<artifactId>maven-source-plugin</artifactId> | ||
</plugin> | ||
<plugin> | ||
<artifactId>maven-compiler-plugin</artifactId> | ||
</plugin> | ||
<plugin> | ||
<artifactId>maven-jar-plugin</artifactId> | ||
</plugin> | ||
<plugin> | ||
<artifactId>maven-javadoc-plugin</artifactId> | ||
</plugin> | ||
</plugins> | ||
</build> | ||
</project> |
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
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,25 @@ | ||
// Gradle build script for the ProGuard Ant task. | ||
|
||
apply plugin: 'java' | ||
|
||
repositories { | ||
jcenter() | ||
} | ||
|
||
sourceSets.main { | ||
java { | ||
srcDirs = ['src'] | ||
} | ||
resources { | ||
srcDirs = ['src'] | ||
include '**/*.properties' | ||
include '**/*.gif' | ||
include '**/*.png' | ||
include '**/*.pro' | ||
} | ||
} | ||
|
||
dependencies { | ||
compile project(':core') | ||
compile 'org.apache.ant:ant:1.9.7' | ||
} |
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,31 @@ | ||
#!/bin/bash | ||
# | ||
# GNU/Linux build script for the ProGuard Ant task. | ||
|
||
cd $(dirname "$0") | ||
|
||
source ../buildscripts/functions.sh | ||
|
||
MAIN_CLASS=proguard.ant.ProGuardTask | ||
|
||
ANT_HOME=${ANT_HOME:-/usr/local/java/ant} | ||
|
||
ANT_JAR=$ANT_HOME/lib/ant.jar | ||
|
||
# Make sure the Ant jar is present. | ||
if [ ! -f "$ANT_JAR" ]; then | ||
echo "Please make sure the environment variable ANT_HOME is set correctly," | ||
echo "if you want to compile the optional ProGuard Ant task." | ||
exit 1 | ||
fi | ||
|
||
# Make sure the ProGuard core has been compiled. | ||
if [ ! -d ../core/$OUT ]; then | ||
../core/build.sh || exit 1 | ||
fi | ||
|
||
# Compile and package. | ||
export CLASSPATH=../core/$OUT:$ANT_JAR | ||
|
||
compile $MAIN_CLASS && \ | ||
updatejar "$PROGUARD_JAR" || exit 1 |
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,57 @@ | ||
<!-- Ant build script for the ProGuard Ant task. --> | ||
|
||
<project name = "ant" | ||
default = "dist"> | ||
|
||
<property file = "build.properties"/> | ||
|
||
<target name = "clean"> | ||
<delete quiet = "true"> | ||
<fileset dir = "out"/> | ||
</delete> | ||
</target> | ||
|
||
<target name = "out"> | ||
<mkdir dir = "out"/> | ||
</target> | ||
|
||
<target name = "core"> | ||
<ant dir = "../core" | ||
target = "compile" | ||
inheritAll = "false"/> | ||
</target> | ||
|
||
<target name = "compile" depends = "out,core"> | ||
<javac nowarn = "true" | ||
deprecation = "false" | ||
includeantruntime = "true" | ||
classpath = "../core/out" | ||
srcdir = "src" | ||
destdir = "out" | ||
includes = "proguard/ant/ProGuardTask.java"> | ||
<compilerarg value = "-Xlint:none"/> | ||
</javac> | ||
</target> | ||
|
||
<target name = "resources" depends = "out"> | ||
<copy todir = "out"> | ||
<fileset dir = "src"> | ||
<include name = "**/*.properties"/> | ||
<include name = "**/*.png"/> | ||
<include name = "**/*.gif"/> | ||
<include name = "**/*.pro"/> | ||
</fileset> | ||
</copy> | ||
</target> | ||
|
||
<target name = "lib"> | ||
<mkdir dir = "../lib"/> | ||
</target> | ||
|
||
<target name = "dist" depends = "compile,resources,lib"> | ||
<jar jarfile = "../lib/proguard.jar" | ||
update = "true" | ||
basedir = "out"/> | ||
</target> | ||
|
||
</project> |
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,15 @@ | ||
# GNU/Linux makefile for the ProGuard Ant task. | ||
|
||
ifndef ANT_HOME | ||
ANT_HOME = /usr/local/java/ant | ||
endif | ||
|
||
MAIN_CLASS = proguard/ant/ProGuardTask | ||
ANT_JAR = $(ANT_HOME)/lib/ant.jar | ||
CLASSPATH = ../core/$(OUT):$(ANT_JAR) | ||
TARGET = proguard | ||
UPDATE_JAR = true | ||
|
||
include ../buildscripts/functions.mk | ||
|
||
$(ANT_JAR): ; $(error Please make sure ANT_HOME is set correctly) |
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
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 @@ | ||
includeFlat 'core' |
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
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
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
Oops, something went wrong.