Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Enhance build process

  • Loading branch information...
commit a5f4f684abf87611fd7ecf02967004516293636c 1 parent 860d931
@netzpirat authored
View
1  .gitignore
@@ -3,3 +3,4 @@ target
out
src/org/coffeebrew/lang/lexer/CoffeeScriptLexer.java
coffee-brew.iws
+build.properties
View
2  META-INF/plugin.xml
@@ -2,7 +2,7 @@
<id>org.coffebrew</id>
<name>CoffeeBrew</name>
<description>Plugin for CoffeeScript language support</description>
- <version>0.1.0</version>
+ <version>@version@</version>
<vendor logo="/org/coffeebrew/images/coffee-script.png" url="https://github.com/netzpirat/coffee-brew">
Michael Kessler
</vendor>
View
1  VERSION
@@ -0,0 +1 @@
+0.1.0
View
2  build.properties.sample
@@ -0,0 +1,2 @@
+# Add your environment settings and copy this file to build.properties
+idea.home=/Users/michi/Repositories/idea
View
27 build.xml
@@ -3,8 +3,13 @@
<!-- Define build properties -->
- <property name="version" value="0.1.0"/>
- <property name="idea.home" value="/Users/michi/Repositories/idea"/>
+ <loadfile property="version" srcfile="VERSION">
+ <filterchain>
+ <striplinebreaks/>
+ </filterchain>
+ </loadfile>
+
+ <property file="build.properties"/>
<!-- Reference the IDEA classpath from the local IDE installation -->
@@ -39,7 +44,7 @@
<!-- Create target directories -->
<target name="init" depends="clean">
- <mkdir dir="target/classes"/>
+ <mkdir dir="target/classes/META-INF"/>
<mkdir dir="target/junit"/>
<mkdir dir="target/test-classes"/>
<mkdir dir="target/test-reports"/>
@@ -106,24 +111,28 @@
<fileset dir="${basedir}/target/test-classes" includes="**/*Test.class"/>
</batchtest>
</junit>
- <fail if="unit-test.fail" message="unit tests failed see target/test-reports"/>
+ <fail if="unit-test.fail" message="Unit test failed. See target/test-reports for more information."/>
</target>
<!-- Build the jar -->
<target name="jar" depends="test, compile" description="Build the plugin jar">
+ <copy file="META-INF/plugin.xml" todir="target/classes/META-INF">
+ <filterset>
+ <filter token="version" value="${version}"/>
+ </filterset>
+ </copy>
<jar destfile="target/jar/coffee-brew-${version}.jar" compress="true">
- <fileset dir="target/classes" />
- <fileset dir="resources" />
+ <fileset dir="target/classes"/>
</jar>
</target>
<!-- Install plugin to IntelliJ IDEA 10 CE -->
<target name="install-idea" depends="jar" description="Install the plugin to IntelliJ IDEA 10 CE">
- <mkdir dir="${user.home}/Library/Application Support/IntelliJIdea10"/>
- <delete dir="${user.home}/Library/Application Support/IntelliJIdea10" includes="coffee-brew*.jar"/>
- <copy todir="${user.home}/Library/Application Support/IntelliJIdea10">
+ <mkdir dir="${user.home}/Library/Application Support/IntelliJIdea10CE"/>
+ <delete dir="${user.home}/Library/Application Support/IntelliJIdea10CE" includes="coffee-brew*.jar"/>
+ <copy todir="${user.home}/Library/Application Support/IntelliJIdea10CE">
<fileset dir="${basedir}/target/jar" includes="*.jar"/>
</copy>
</target>
View
17 coffee-brew.ipr
@@ -226,5 +226,22 @@
<component name="VcsDirectoryMappings">
<mapping directory="" vcs="Git" />
</component>
+ <component name="ideadoc.IdeaDocConfigurationGUI">
+ <doccer class="nl.piraya.ideadoc.doccer.DoccerForOverridingMethod" enabled="true">
+ <template>/**$s${@inheritDoc}$s$*/</template>
+ </doccer>
+ <doccer class="nl.piraya.ideadoc.doccer.DoccerForGetter" enabled="true">
+ <template>/**$n$$s$*$s$Getter$s$for$s$property$s$'${PROPERTY_NAME}'.$n$$s$*$n$$s$*$s$@return$s$Value$s$for$s$property$s$'${PROPERTY_NAME}'.$n$$s$*/</template>
+ </doccer>
+ <doccer class="nl.piraya.ideadoc.doccer.DoccerForSetter" enabled="true">
+ <template>/**$n$$s$*$s$Setter$s$for$s$property$s$'${PROPERTY_NAME}'.$n$$s$*$n$$s$*$s$@param$s$${PARAM_NAME}$s$Value$s$to$s$set$s$for$s$property$s$'${PROPERTY_NAME}'.$n$$s$*/</template>
+ </doccer>
+ <doccer class="nl.piraya.ideadoc.doccer.DoccerForDefaultConstructor" enabled="true">
+ <template>/**$s$Constructs$s$a$s$new$s$${CLASS_NAME}.$s$*/</template>
+ </doccer>
+ <doccer class="nl.piraya.ideadoc.doccer.DoccerForPrivateDefaultConstructor" enabled="true">
+ <template>/**$s$Do$s$not$s$instantiate$s$${CLASS_NAME}.$s$*/</template>
+ </doccer>
+ </component>
</project>
Please sign in to comment.
Something went wrong with that request. Please try again.