Skip to content

Commit

Permalink
Made the different version numbers refer to version in pom.xml.
Browse files Browse the repository at this point in the history
  • Loading branch information
FrozenCow committed Sep 9, 2011
1 parent 6d2193d commit 03f62bd
Show file tree
Hide file tree
Showing 8 changed files with 40 additions and 8 deletions.
18 changes: 18 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,24 @@
<url>https://github.com/FrozenCow/dynmap/issues</url>
</issueManagement>
<build>
<resources>
<resource>
<directory>src/main/resources</directory>
<filtering>true</filtering>
<includes>
<include>*.yml</include>
<include>*.txt</include>
</includes>
</resource>
<resource>
<directory>src/main/resources</directory>
<filtering>false</filtering>
<excludes>
<exclude>*.yml</exclude>
<exclude>*.txt</exclude>
</excludes>
</resource>
</resources>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
Expand Down
19 changes: 16 additions & 3 deletions src/main/assembly/package.xml
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,20 @@
<include>CHANGELOG*</include>
</includes>
</fileSet>
<fileSet>
<directory>${project.basedir}/web/</directory>
<outputDirectory>/dynmap/web/</outputDirectory>
<includes>
<include>version.js</include>
</includes>
<filtered>true</filtered>
</fileSet>
<fileSet>
<directory>${project.basedir}/web</directory>
<outputDirectory>/dynmap/web</outputDirectory>
<excludes>
<exclude>version.js</exclude>
</excludes>
</fileSet>
<fileSet>
<directory>${project.basedir}/colorschemes</directory>
Expand All @@ -32,7 +43,9 @@
</fileSets>
<files>
<file>
<source>${project.build.directory}/${artifactId}-${version}.jar</source>
<outputDirectory>/</outputDirectory>
<destName>dynmap.jar</destName></file></files>
<source>${project.build.directory}/${artifactId}-${version}.jar</source>
<outputDirectory>/</outputDirectory>
<destName>dynmap.jar</destName>
</file>
</files>
</assembly>
2 changes: 1 addition & 1 deletion src/main/resources/lightings.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 0.22
version: ${project.version}
#
# This file contains default standard lighting profiles. The contents of this file CAN need to be replaced and updated
# during upgrades, so new or updated lighting definitions should be done in the custom-lightings.txt file
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/perspectives.txt
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
version: 0.22
version: ${project.version}
#
# This file contains default standard perspective definitions. The contents of this file CAN need to be replaced and updated
# during upgrades, so new or updated perspective definitions should be done in the custom-perspectives.txt file
Expand Down
4 changes: 2 additions & 2 deletions src/main/resources/plugin.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
name: dynmap
main: org.dynmap.DynmapPlugin
version: "0.22"
version: "${project.version}"
authors: [FrozenCow, mikeprimm, zeeZ]
softdepend: [Permissions]
commands:
Expand Down Expand Up @@ -139,4 +139,4 @@ permissions:
dynmap.marker.addicon:
description: Allows /dmarker addicon
default: op


1 change: 1 addition & 0 deletions web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
<link rel="stylesheet" type="text/css" href="css/dynmap_style.css" media="screen" />
<!-- <link rel="stylesheet" type="text/css" href="css/override.css" media="screen" /> -->

<script type="text/javascript" src="version.js"></script>
<script type="text/javascript" src="js/jquery.json.js"></script>
<script type="text/javascript" src="js/jquery.mousewheel.js"></script>
<script type="text/javascript" src="js/minecraft.js"></script>
Expand Down
1 change: 0 additions & 1 deletion web/js/map.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
"use strict";
//if (!console) console = { log: function() {} };

var dynmapversion = "0.22"; // This needs to match plugin verison
var componentconstructors = {};
var maptypes = {};
var map = null; // Leaflet assumes top-level 'map'...
Expand Down
1 change: 1 addition & 0 deletions web/version.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
var dynmapversion = "${project.version}";

0 comments on commit 03f62bd

Please sign in to comment.