summaryrefslogtreecommitdiff
path: root/examples/annotations/examples/Application.java
blob: 777d2865a78bb634dcde793a87ba48da54c4ff53 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import proguard.annotation.KeepApplication;

/**
 * This application illustrates the use of annotations for configuring ProGuard.
 *
 * You can compile it with:
 *     javac -classpath ../lib/annotations.jar Application.java
 * You can then process it with:
 *     java -jar ../../../lib/proguard.jar @ ../examples.pro
 *
 * The annotation will preserve the class and its main method,
 * as a result of the specifications in lib/annotations.pro.
 */
@KeepApplication
public class Application
{
    public static void main(String[] args)
    {
        System.out.println("The answer is 42");
    }
}