Agora a build dos arquivos jasmin esta integrada ao maven
[JavaDecompiler.git] / pom.xml
blob01273a5f3799704cfb96ddbb4bddfe2d77f78663
1 <project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http:/www.w3.org/XMLSchema-instance"
2         xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
3         <modelVersion>4.0.0</modelVersion>
4         <groupId>br.org.javadecompiler</groupId>
5         <artifactId>javadecompiler</artifactId>
6         <version>1.0.0-SNAPSHOT</version>
7         <packaging>jar</packaging>
8         <name>Java Decompiler</name>
9         <description>Java Decompiler</description>
10         <inceptionYear>2008</inceptionYear>
11         <dependencies>
12                 <dependency>
13                         <groupId>log4j</groupId>
14                         <artifactId>log4j</artifactId>
15                         <version>1.2.13</version>
16                         <scope>compile</scope>
17                 </dependency>
18                 <dependency>
19                         <groupId>junit</groupId>
20                         <artifactId>junit</artifactId>
21                         <version>3.8.1</version>
22                         <scope>test</scope>
23                 </dependency>
24         </dependencies>
25         <build>
26                 <plugins>
27                         <plugin>
28                                 <groupId>org.apache.maven.plugins</groupId>
29                                 <artifactId>maven-surefire-plugin</artifactId>
30                                 <configuration>
31                                         <excludes>
32                                                 <exclude>classes/**</exclude>
33                                         </excludes>
34                                 </configuration>
35                         </plugin>
36                         <plugin>
37                                 <groupId>org.apache.maven.plugins</groupId>
38                                 <artifactId>maven-antrun-plugin</artifactId>
39                                 <executions>
40                                         <execution>
41                                                 <id>generate-test-classes</id>
42                                                 <phase>generate-test-resources</phase>
43                                                 <configuration>
44                                                         <tasks>
45                                                                 <taskdef resource="net/sf/antcontrib/antlib.xml" />
46                                                                 <for param="file">
47                                                                         <path>
48                                                                                 <fileset dir="${basedir}/src/test/resources/jasmin"
49                                                                                         includes="*.j" />
50                                                                         </path>
51                                                                         <sequential>
52                                                                                 <echo message="Processing file @{file}" />
53                                                                                 <java classname="jasmin.Main" failonerror="true">
54                                                                                         <arg value="-d" />
55                                                                                         <arg value="${basedir}/src/test/resources/classes" />
56                                                                                         <arg value="@{file}" />
57                                                                                         <classpath>
58                                                                                                 <pathelement location="${basedir}/lib/jasmin-2.3.jar" />
59                                                                                         </classpath>
60                                                                                 </java>
61                                                                         </sequential>
62                                                                 </for>
63                                                         </tasks>
64                                                 </configuration>
65                                                 <goals>
66                                                         <goal>run</goal>
67                                                 </goals>
68                                         </execution>
69                                 </executions>
70                                 <dependencies>
71                                         <dependency>
72                                                 <groupId>ant-contrib</groupId>
73                                                 <artifactId>ant-contrib</artifactId>
74                                                 <version>1.0b2</version>
75                                         </dependency>
76                                 </dependencies>
77                         </plugin>
78                 </plugins>
79         </build>
80 </project>