Run Profiles

This commit is contained in:
Daniel Mills 2020-09-04 02:30:04 -04:00
parent 3f4347289c
commit 073998789c

30
pom.xml
View File

@ -13,6 +13,7 @@
<maven.compiler.target>1.8</maven.compiler.target> <maven.compiler.target>1.8</maven.compiler.target>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<development.location.dan>${user.home}\Documents\development\server\plugins\${project.name}.jar</development.location.dan> <development.location.dan>${user.home}\Documents\development\server\plugins\${project.name}.jar</development.location.dan>
<development.location.brian>${user.home}\Documents\development\server\plugins\${project.name}.jar</development.location.brian>
<lint.in>${project.basedir}\lint\in.jar</lint.in> <lint.in>${project.basedir}\lint\in.jar</lint.in>
</properties> </properties>
<build> <build>
@ -78,6 +79,35 @@
</plugins> </plugins>
</build> </build>
</profile> </profile>
<profile>
<id>brian</id>
<build>
<plugins>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>exec-maven-plugin</artifactId>
<version>1.2</version>
<executions>
<execution>
<id>runbatchfile</id>
<phase>package</phase>
<goals>
<goal>exec</goal>
</goals>
</execution>
</executions>
<configuration>
<skip>${skip.copy}</skip>
<executable>${project.basedir}/scripts/copy.bat</executable>
<arguments>
<argument>${project.basedir}\target\${project.name}-${project.version}.jar</argument>
<argument>${development.location.brian}</argument>
</arguments>
</configuration>
</plugin>
</plugins>
</build>
</profile>
<profile> <profile>
<id>release</id> <id>release</id>
<build> <build>