Statistics
| Revision:

root / org.gvsig.jexcel / trunk / org.gvsig.jexcel / org.gvsig.jexcel.app / org.gvsig.jexcel.app.mainplugin / pom.xml @ 7

History | View | Annotate | Download (6.62 KB)

1
<?xml version="1.0" encoding="UTF-8"?>
2
<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/xsd/maven-4.0.0.xsd">
3
    <modelVersion>4.0.0</modelVersion>
4
    <artifactId>org.gvsig.jexcel.app.mainplugin</artifactId>
5
    <packaging>jar</packaging>
6
    <name>Formats: Excel file format support</name>
7
    <description>Excel file format support</description>
8
    <parent>
9
        <groupId>org.gvsig</groupId>
10
        <artifactId>org.gvsig.jexcel.app</artifactId>
11
        <version>1.0.0-SNAPSHOT</version>
12
    </parent>
13

    
14
    <dependencies>
15
        <dependency>
16
            <groupId>org.gvsig</groupId>
17
            <artifactId>org.gvsig.tools.lib</artifactId>
18
            <scope>compile</scope>
19
        </dependency>
20
        <dependency>
21
            <groupId>org.gvsig</groupId>
22
            <artifactId>org.gvsig.andami</artifactId>
23
            <scope>compile</scope>
24
        </dependency>
25
        <dependency>
26
            <groupId>org.gvsig</groupId>
27
            <artifactId>org.gvsig.jexcel.provider</artifactId>
28
            <scope>compile</scope>
29
        </dependency>
30

    
31
        <dependency>
32
            <groupId>net.sourceforge.jexcelapi</groupId>
33
            <artifactId>jxl</artifactId>
34
            <scope>runtime</scope>
35
        </dependency>
36

    
37
    </dependencies>
38
  
39
  
40
  
41
    <build>
42
        <plugins>
43
  
44
            <plugin>
45
                <groupId>org.codehaus.gmaven</groupId>
46
                <artifactId>gmaven-plugin</artifactId>
47
                <version>1.4</version>
48
                <dependencies>
49
                    <dependency>
50
                        <groupId>com.github.lookfirst</groupId>
51
                        <artifactId>sardine</artifactId>
52
                        <version>5.0.1</version>
53
                    </dependency>
54
                </dependencies>
55
                <executions>
56
                    <execution>
57
                        <id>build-package-info</id>
58
                        <phase>prepare-package</phase>
59
                        <configuration>
60
                            <source><![CDATA[
61
if( project.properties["buildNumber"] == null) {
62
  log.info("Skip build package.info (buildNumber.property not present).")
63
  log.info("Skip build package.info index (buildNumber.property not present).")
64
} else {
65
  package_info_file  = new File(project.basedir, "target/package.info")
66
  log.info("Building package.info : " + package_info_file.getAbsolutePath())
67
  Properties props = new Properties()
68
  props.setProperty('code', project.properties["gvsig.package.info.code"])
69
  props.setProperty('code-alias', project.properties["gvsig.package.info.codealias"])
70
  props.setProperty('name', project.properties["gvsig.package.info.name"])
71
  props.setProperty('version', project.properties["gvsig.package.info.version"])
72
  props.setProperty('description', project.properties["gvsig.package.info.description"])
73
  props.setProperty('owner', project.properties["gvsig.package.info.owner"])
74
  props.setProperty('java-version', project.properties["gvsig.package.info.javaVM"])
75
  props.setProperty('official', project.properties["gvsig.package.info.official"])
76
  props.setProperty('type', "plugin")
77
  props.setProperty('state', project.properties["gvsig.package.info.state"])
78
  props.setProperty('operating-system', project.properties["gvsig.package.info.operatingSystem"])
79
  props.setProperty('dependencies', project.properties["gvsig.package.info.dependencies"])
80
  props.setProperty('sources-url', project.properties["gvsig.package.info.sourcesURL"])
81
  props.setProperty('web-url', project.properties["gvsig.package.info.webURL"])
82
  props.setProperty('architecture', project.properties["gvsig.package.info.architecture"])
83
  props.setProperty('model-version', '1.0.1')
84
  props.setProperty('categories', project.properties["gvsig.package.info.categories"])
85
  props.setProperty('buildNumber', project.properties["buildNumber"])
86
  props.setProperty('gvSIG-version', project.properties["gvsig.package.info.gvSIGVersion"])
87

    
88
  props.store(package_info_file.newWriter(), null)
89

    
90
  pkgname = "gvSIG-desktop-" + 
91
    project.properties["gvsig.package.info.gvSIGVersion"] + "-" + 
92
    project.properties["gvsig.package.info.code"] + "-" + 
93
    project.properties["gvsig.package.info.version"] + "-" + 
94
    project.properties["buildNumber"] + "-" + 
95
    project.properties["gvsig.package.info.state"] + "-" + 
96
    project.properties["gvsig.package.info.operatingSystem"] + "-" + 
97
    project.properties["gvsig.package.info.architecture"] + "-" + 
98
    project.properties["gvsig.package.info.javaVM"]
99
  package_info_file  = new File(project.basedir, "target/gvspki/"+project.properties["gvsig.package.info.code"]+"/package.info")
100
  log.info("Building package.info index " + package_info_file.getAbsolutePath())
101
  package_info_file.getParentFile().mkdirs()
102
  downloadurl = project.properties["gvsig.package.info.downloadurl"]                          
103
  if( downloadurl == null )   {
104
    poolURL = project.properties["gvsig.package.info.poolURL"];
105
    if( poolURL[-1] != "/" ) { 
106
            poolURL = poolURL + "/";
107
    }
108
    downloadurl = poolURL +
109
        project.properties["gvsig.package.info.code"] + "/" +
110
        pkgname + ".gvspkg"
111
    log.info("Build downloadurl from poolURL property ("+downloadurl+").");
112
  } else {
113
    log.info("Using doanloadurl property ("+downloadurl+").");
114
  }                              
115
  props.setProperty('download-url', downloadurl);
116
  props.store(package_info_file.newWriter(), null)
117
}
118
                  ]]></source>
119
                        </configuration>
120
                    </execution>
121
                </executions>
122
            </plugin>
123
        </plugins>
124
    </build>
125
  
126
  
127
    <properties>
128
        <!-- Package info property values -->
129
        <!-- Default values in org.gvsig.desktop -->
130
        <gvsig.package.info.state>testing</gvsig.package.info.state>
131
        <gvsig.package.info.official>false</gvsig.package.info.official>
132
        <gvsig.package.info.dependencies>required: org.gvsig.app.mainplugin -ge 2.1.0-A</gvsig.package.info.dependencies>
133
        <gvsig.package.info.categories>Formats,Vector</gvsig.package.info.categories>
134
        <!--
135
        <gvsig.package.info.poolURL>http://devel.gvsig.org/download/projects/gvsig-jexcel/pool/</gvsig.package.info.poolURL>
136
        -->
137
        <gvsig.package.info.downloadurl>https://redmine.gvsig.net/redmine/attachments/download/895/gvSIG-desktop-2.1.0-org.gvsig.jexcel.app.mainplugin-1.0.0-SNAPSHOT-1-testing-all-all-j1_5.gvspkg</gvsig.package.info.downloadurl>
138
    </properties>
139
  
140
</project>