Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Buckminster » Insert plugin full version in java source file
Insert plugin full version in java source file [message #557586] Wed, 08 September 2010 08:00
Ulrich Grave is currently offline Ulrich GraveFriend
Messages: 3
Registered: October 2009
Junior Member
how can i replace a token in my java source file with the full plugin version.

I first create a buckminster.cspex in my plugin:
<?xml version="1.0" encoding="UTF-8"?>
        <private name="raw.version.source">
            <path path="src/runtime/util/"/>
        <private name="insert.version" actor="ant">
                <property key="buildFileId" value="buckminster.pdetasks"/>
                <property key="targets" value="replaceToken"/>
                <property key="token" value="@runtime_version@"/>
                <property key="value" value="TODO"/>
                <attribute alias="action.input" name="raw.version.source"/>
            <products alias="action.output" base="${buckminster.output}/temp/">
                <path path="src/runtime/util/" />
        <private name="">
            <attribute name=""/>
            <attribute name="insert.version"/>
        <rename oldName="" newName=""/>

The result is that the token @runtime_version@ is replaced with "TODO". But not in the final compiled class file in the plugin jar.
Previous Topic:Building rcp apps for the mac
Next Topic:authentication cancelled error
Goto Forum:

Current Time: Sun Nov 29 05:38:42 GMT 2015

Powered by FUDForum. Page generated in 0.01740 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software