diff options
author | Shireesh Anjal <shireesh@gluster.com> | 2011-12-09 21:21:32 +0530 |
---|---|---|
committer | Shireesh Anjal <shireesh@gluster.com> | 2011-12-09 21:32:07 +0530 |
commit | 3c0c4059e016f73b399f891ee8e84e2e01d54177 (patch) | |
tree | fe9da550e8b7dcef5dff7d84fbf5ee097f836fc9 | |
parent | 6f8b14ae1f86f05083cba69322fc7ccf68a089b6 (diff) |
Introduced buckminster extension and ant task in console project for updating product version in the about text present in plugin.properties at build time.
-rw-r--r-- | src/org.gluster.storage.management.console/buckminster.cspex | 30 | ||||
-rw-r--r-- | src/org.gluster.storage.management.console/build/glustermc.ant | 25 |
2 files changed, 55 insertions, 0 deletions
diff --git a/src/org.gluster.storage.management.console/buckminster.cspex b/src/org.gluster.storage.management.console/buckminster.cspex new file mode 100644 index 00000000..88e2c953 --- /dev/null +++ b/src/org.gluster.storage.management.console/buckminster.cspex @@ -0,0 +1,30 @@ +<?xml version="1.0" encoding="UTF-8"?> +<!-- + Copyright (c) 2006-2011 Gluster, Inc. <http://www.gluster.com> + This file is part of Gluster Management Console. + + Gluster Management Console is free software; you can redistribute + it and/or modify it under the terms of the GNU General Public + License as published by the Free Software Foundation; either + version 3 of the License, or (at your option) any later version. + + Gluster Management Console is distributed in the hope that it + will be useful, but WITHOUT ANY WARRANTY; without even the + implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + PURPOSE. See the GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see + <http://www.gnu.org/licenses/>. +--> +<cspecExtension xmlns:com="http://www.eclipse.org/buckminster/Common-1.0" + xmlns="http://www.eclipse.org/buckminster/CSpec-1.0"> + <actions> + <public name="update.version" actor="ant"> + <actorProperties> + <property key="buildFile" value="build/glustermc.ant" /> + <property key="targets" value="update.version" /> + </actorProperties> + </public> + </actions> +</cspecExtension> diff --git a/src/org.gluster.storage.management.console/build/glustermc.ant b/src/org.gluster.storage.management.console/build/glustermc.ant new file mode 100644 index 00000000..2626aec7 --- /dev/null +++ b/src/org.gluster.storage.management.console/build/glustermc.ant @@ -0,0 +1,25 @@ +<!-- + Copyright (c) 2006-2011 Gluster, Inc. <http://www.gluster.com> + This file is part of Gluster Management Console. + + Gluster Management Console is free software; you can redistribute + it and/or modify it under the terms of the GNU General Public + License as published by the Free Software Foundation; either + version 3 of the License, or (at your option) any later version. + + Gluster Management Console is distributed in the hope that it + will be useful, but WITHOUT ANY WARRANTY; without even the + implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR + PURPOSE. See the GNU General Public License for more details. + + You should have received a copy of the GNU General Public License + along with this program. If not, see + <http://www.gnu.org/licenses/>. +--> +<project> + <property name="plugin.properties.file" value="${basedir}/plugin.properties" /> + + <target name='update.version'> + <replace file="${plugin.properties.file}" token="@VERSION@" value="${product.version}" /> + </target> +</project> |