Revision 2488
org.gvsig.raster/trunk/org.gvsig.raster/pom.xml | ||
---|---|---|
13 | 13 |
<artifactId>org.gvsig.desktop</artifactId> |
14 | 14 |
<version>2.0.22</version> |
15 | 15 |
</parent> |
16 |
|
|
17 |
<properties> |
|
18 |
<potrace.version>2.0.0-SNAPSHOT</potrace.version> |
|
19 |
</properties> |
|
20 |
|
|
16 | 21 |
<scm> |
17 | 22 |
<connection>scm:svn:https://devel.gvsig.org/svn/gvsig-raster/org.gvsig.raster/trunk/org.gvsig.raster</connection> |
18 | 23 |
<developerConnection>scm:svn:https://devel.gvsig.org/svn/gvsig-raster/org.gvsig.raster/trunk/org.gvsig.raster</developerConnection> |
... | ... | |
123 | 128 |
<artifactId>org.gvsig.jpotrace</artifactId> |
124 | 129 |
<classifier>${native_classifier}</classifier> |
125 | 130 |
<type>tar.gz</type> |
126 |
<version>2.0.0-SNAPSHOT</version>
|
|
131 |
<version>${potrace.version}</version>
|
|
127 | 132 |
</dependency> |
128 | 133 |
</dependencies> |
129 | 134 |
</dependencyManagement> |
... | ... | |
146 | 151 |
</plugin> |
147 | 152 |
</plugins> |
148 | 153 |
</build> |
149 |
|
|
154 |
|
|
150 | 155 |
<modules> |
151 | 156 |
<module>org.gvsig.raster.lib</module> |
152 | 157 |
<module>org.gvsig.raster.swing</module> |
org.gvsig.raster/trunk/org.gvsig.raster/org.gvsig.raster.mainplugin/unpack-dependencies.sh | ||
---|---|---|
1 |
#!/bin/bash |
|
2 |
|
|
3 |
#set -x |
|
4 |
|
|
5 |
dep_dir=$1; |
|
6 |
dest_dir=$2; |
|
7 |
|
|
8 |
if [ ! -d $dest_dir ]; then mkdir $dest_dir; fi; |
|
9 |
if [ ! -d $dep_dir ]; then exit 0; fi |
|
10 |
|
|
11 |
if [ ! -d $dest_dir/unpacked ]; then |
|
12 |
mkdir $dest_dir/unpacked; |
|
13 |
fi |
|
14 |
|
|
15 |
# Get all natives sdk bundle files |
|
16 |
files=$(find $dep_dir -type f -name *.tar.gz) |
|
17 |
|
|
18 |
for i in $files; do |
|
19 |
filename=`basename $i` |
|
20 |
filedest="$dest_dir/unpacked/$filename" |
|
21 |
|
|
22 |
#echo FileName: "$filename" |
|
23 |
#echo FileDest: "$filedest" |
|
24 |
|
|
25 |
# Overwrite only if the file is newer than the one stored as unpacked |
|
26 |
if [ ! -f "$filedest" ] || [ "$i" -nt "$filedest" ]; then |
|
27 |
echo "Expanding $i in $dest_dir" |
|
28 |
cp "$i" "$dest_dir/unpacked" |
|
29 |
tar xzf "$i" -C "$dest_dir" |
|
30 |
else |
|
31 |
echo "$i not newer than the one available in $dest_dir/unpacked, not expanding it" |
|
32 |
fi |
|
33 |
done |
org.gvsig.raster/trunk/org.gvsig.raster/org.gvsig.raster.mainplugin/pom.xml | ||
---|---|---|
151 | 151 |
<dependency> |
152 | 152 |
<groupId>org.gvsig</groupId> |
153 | 153 |
<artifactId>org.gvsig.jpotrace</artifactId> |
154 |
<scope>runtime</scope>
|
|
154 |
<scope>compile</scope>
|
|
155 | 155 |
</dependency> |
156 | 156 |
<dependency> |
157 | 157 |
<groupId>org.gvsig</groupId> |
158 | 158 |
<artifactId>org.gvsig.jpotrace</artifactId> |
159 | 159 |
<classifier>${native_classifier}</classifier> |
160 | 160 |
<type>tar.gz</type> |
161 |
<scope>compile</scope>
|
|
161 |
<scope>runtime</scope>
|
|
162 | 162 |
</dependency> |
163 | 163 |
</dependencies> |
164 | 164 |
|
... | ... | |
210 | 210 |
</execution> |
211 | 211 |
</executions> |
212 | 212 |
</plugin> |
213 |
|
|
214 |
<plugin> |
|
215 |
<groupId>org.codehaus.mojo</groupId> |
|
216 |
<artifactId>exec-maven-plugin</artifactId> |
|
217 |
<executions> |
|
218 |
<execution> |
|
219 |
<id>unpack-dependencies</id> |
|
220 |
<phase>generate-sources</phase> |
|
221 |
<goals> |
|
222 |
<goal>exec</goal> |
|
223 |
</goals> |
|
224 |
<configuration> |
|
225 |
<executable>sh</executable> |
|
226 |
<arguments> |
|
227 |
<argument>${basedir}/unpack-dependencies.sh</argument> |
|
228 |
<argument>${user.home}/.m2/repository/org/gvsig/org.gvsig.jpotrace/${potrace.version}</argument> |
|
229 |
<argument>${user.home}/.depman</argument> |
|
230 |
</arguments> |
|
231 |
</configuration> |
|
232 |
</execution> |
|
233 |
</executions> |
|
234 |
</plugin> |
|
213 | 235 |
</plugins> |
214 | 236 |
</build> |
215 | 237 |
</profile> |
... | ... | |
299 | 321 |
</execution> |
300 | 322 |
</executions> |
301 | 323 |
</plugin> |
324 |
|
|
325 |
<plugin> |
|
326 |
<groupId>org.codehaus.mojo</groupId> |
|
327 |
<artifactId>exec-maven-plugin</artifactId> |
|
328 |
<executions> |
|
329 |
<execution> |
|
330 |
<id>unpack-dependencies</id> |
|
331 |
<phase>generate-sources</phase> |
|
332 |
<goals> |
|
333 |
<goal>exec</goal> |
|
334 |
</goals> |
|
335 |
<configuration> |
|
336 |
<executable>sh</executable> |
|
337 |
<arguments> |
|
338 |
<argument>${basedir}/unpack-dependencies.sh</argument> |
|
339 |
<argument>${user.home}/.m2/repository/org/gvsig/org.gvsig.jpotrace/${potrace.version}</argument> |
|
340 |
<argument>${user.home}/.depman</argument> |
|
341 |
</arguments> |
|
342 |
</configuration> |
|
343 |
</execution> |
|
344 |
</executions> |
|
345 |
</plugin> |
|
302 | 346 |
</plugins> |
303 | 347 |
</build> |
304 | 348 |
</profile> |
Also available in: Unified diff