Skip to content

Commit

Permalink
在编译时,显示关于servlet profile的提示信息
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael Zhou committed Sep 26, 2013
1 parent 7753b88 commit 1d99662
Show file tree
Hide file tree
Showing 4 changed files with 61 additions and 40 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ target

*.iml
/out
/.idea/ant.xml
/.idea/misc.xml
/.idea/workspace.xml
/.idea/modules.xml
/.idea/compiler.xml
Expand Down
7 changes: 0 additions & 7 deletions .idea/ant.xml

This file was deleted.

33 changes: 0 additions & 33 deletions .idea/misc.xml

This file was deleted.

59 changes: 59 additions & 0 deletions common/servlet/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,35 @@
<artifactId>servlet-api</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>compile</phase>
<configuration>
<target>
<echo message="+---------------------------------+" />
<echo message="! Servlet 2 Profile activated !" />
<echo message="+---------------------------------+" />
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant</artifactId>
<version>1.8.4</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</profile>
<profile>
<id>servlet3</id>
Expand All @@ -38,6 +67,36 @@
<artifactId>javax.servlet-api</artifactId>
</dependency>
</dependencies>
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<executions>
<execution>
<phase>compile</phase>
<configuration>
<target>
<echo message="+-------------------------------------------------------------+" />
<echo message="! Servlet 3 Profile activated !" />
<echo message="! To test under Servlet 2, please using argument -Dservlet2 !" />
<echo message="+-------------------------------------------------------------+" />
</target>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
<dependencies>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant</artifactId>
<version>1.8.4</version>
</dependency>
</dependencies>
</plugin>
</plugins>
</build>
</profile>
</profiles>
</project>

0 comments on commit 1d99662

Please sign in to comment.