This repository has been archived by the owner on Dec 16, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pom.xml
100 lines (97 loc) · 4.67 KB
/
pom.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.cliffano</groupId>
<artifactId>wordniksearch</artifactId>
<version>0.1</version>
<description>Adds a right click menu option to search highlighted text on Wordnik.com .</description>
<inceptionYear>2010</inceptionYear>
<name>WordnikSearch</name>
<url>http://code.google.com/p/zillajr/wiki/WordnikSearch</url>
<developers>
<developer>
<id>cliffano</id>
<name>Cliffano Subagio</name>
<email>blah@cliffano.com</email>
<url>http://blog.cliffano.com</url>
<roles>
<role>Developer</role>
</roles>
<timezone>+10</timezone>
</developer>
</developers>
<licenses>
<license>
<name>Mozilla Public License</name>
<url>LICENSE.txt</url>
</license>
</licenses>
<build>
<plugins>
<plugin>
<artifactId>maven-antrun-plugin</artifactId>
<dependencies>
<dependency>
<groupId>com.googlecode.jslint4java</groupId>
<artifactId>jslint4java-ant</artifactId>
<version>1.3</version>
</dependency>
</dependencies>
<executions>
<execution>
<id>jslint</id>
<phase>test</phase>
<goals>
<goal>run</goal>
</goals>
<configuration>
<tasks>
<ant antfile="${basedir}/jslint.xml">
<property name="basedir" location="${basedir}"/>
<target name="jslint"/>
</ant>
</tasks>
</configuration>
</execution>
<execution>
<phase>package</phase>
<configuration>
<tasks>
<property name="source.dir" value="src/main/js"/>
<property name="lib.dir" value="lib/main/js"/>
<property name="resources.dir" value="src/main/resources/firefox"/>
<property name="target.dir" value="target"/>
<property name="stage.dir" value="target/stage"/>
<property name="max_ff_version" value="3.7a1pre"/>
<mkdir dir="${stage.dir}"/>
<copy todir="${stage.dir}">
<fileset dir="${resources.dir}" excludes="chrome/*/"/>
</copy>
<replace file="${stage.dir}/install.rdf" value="${version}">
<replacefilter token="@version@"/>
</replace>
<replace file="${stage.dir}/install.rdf" value="${description}">
<replacefilter token="@description@"/>
</replace>
<replace file="${stage.dir}/install.rdf" value="${url}">
<replacefilter token="@url@"/>
</replace>
<replace file="${stage.dir}/install.rdf" value="${max_ff_version}">
<replacefilter token="@max_ff_version@"/>
</replace>
<zip destfile="${stage.dir}/chrome/wordniksearch.jar">
<zipfileset dir="${resources.dir}/chrome"/>
<zipfileset dir="${source.dir}" prefix="content"/>
<zipfileset dir="${lib.dir}" prefix="content/lib"/>
</zip>
<zip destfile="${target.dir}/${artifactId}-${version}.xpi" basedir="${stage.dir}"/>
</tasks>
</configuration>
<goals>
<goal>run</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>