TeamCity Service messages for Ant
Java
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
gradle/wrapper
src/main
.gitignore
LICENSE
NOTICE
README.md
ant-tasklib-project.xml
ant-test-project.xml
build.gradle
gradlew
gradlew.bat
settings.gradle

README.md

TeamCity.AntMessages

This is a repackage of serviceMessages.jar from TeamCity open-api as Ant task.

https://confluence.jetbrains.com/display/TCD9/Build+Script+Interaction+with+TeamCity#BuildScriptInteractionwithTeamCity-ServiceMessages

Usage in Ant

    <!-- import task into Ant -->
    <taskdef name="teamcity-service-message"
             classname="org.jonnyzzz.teamcity.ant.TeamCityServiceMessageTask">
        <classpath>
            <fileset dir="PATH_TO_LIBRARIES" includes="TeamCity.AntMessages-VERSION.jar"/>
        </classpath>
    </taskdef>


    <!-- post simple service message
    <teamcity-service-message name="name" value="value"/>

    <!-- post complex service message -->
    <teamcity-service-message name="name">
        <param name="aaa" value="vvv"/>
        <param name="aa2a" value="v2vv"/>
    </teamcity-service-message>

Enabling tasks

    <taskdef resource="teamcity-messages.xml">
        <classpath>
            <fileset dir="PATH_TO_LIBRARIES" includes="TeamCity.AntMessages-*.jar"/>
        </classpath>
    </taskdef>

This antlib contains a number of macrodefs for most of TeamCity service messages

Building

Run ./gradlew dist

License

MIT. See LICENSE

Notice

See NOTICE