Skip to content

Commit

Permalink
#44 output .exe in bin folder for windows environment
Browse files Browse the repository at this point in the history
  • Loading branch information
raydac committed Jan 22, 2018
1 parent b8d5559 commit 32dfd80
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<defaultValue>2.1.7-SNAPSHOT</defaultValue>
</requiredProperty>
<requiredProperty key="gosdk">
<defaultValue>1.9.2</defaultValue>
<defaultValue>1.9.3</defaultValue>
</requiredProperty>
</requiredProperties>

Expand Down
14 changes: 13 additions & 1 deletion mvn-golang-hello/src/main/resources/archetype-resources/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.build.timestamp.format>yyyyMMddHHmm</maven.build.timestamp.format>
<mvn.version>3.0</mvn.version>
<final.extension></final.extension>
</properties>

<inceptionYear>${year}</inceptionYear>
Expand All @@ -38,6 +39,17 @@
</prerequisites>

<profiles>
<profile>
<id>windows-profile</id>
<activation>
<os>
<family>Windows</family>
</os>
</activation>
<properties>
<final.extension>.exe</final.extension>
</properties>
</profile>
<!-- The Profile allows to remove all IDE specific data from project folder -->
<profile>
<id>clean-ide-config</id>
Expand Down Expand Up @@ -71,7 +83,7 @@

<build>
<defaultGoal>clean package</defaultGoal>
<finalName>${dollar}{project.artifactId}-${dollar}{maven.build.timestamp}</finalName>
<finalName>${dollar}{project.artifactId}-${dollar}{maven.build.timestamp}${final.extension}</finalName>
<sourceDirectory>${dollar}{basedir}${dollar}{file.separator}src</sourceDirectory>
<directory>${dollar}{basedir}${dollar}{file.separator}bin</directory>
<resources>
Expand Down

0 comments on commit 32dfd80

Please sign in to comment.