|
23 | 23 |
|
24 | 24 | <properties>
|
25 | 25 | <build.folder.application>VirSatIDEBinary</build.folder.application>
|
26 |
| - <build.folder.fullpath>${build.folder.target.bin}/${build.folder.application}/${build.folder.type}</build.folder.fullpath> |
27 |
| - <build.file.win32.fullpath>${build.folder.target.bin}/${build.folder.application}/${build.folder.type}/${build.file.win32}</build.file.win32.fullpath> |
28 |
| - <build.file.linux.fullpath>${build.folder.target.bin}/${build.folder.application}/${build.folder.type}/${build.file.linux}</build.file.linux.fullpath> |
29 |
| - |
| 26 | + <build.folder.fullpath.bin>${build.folder.target.bin}/${build.folder.application}/${build.folder.type}</build.folder.fullpath.bin> |
| 27 | + <build.file.fullpath>${build.folder.target.bin}/${build.folder.application}/${build.folder.type}/${build.file}</build.file.fullpath> |
| 28 | + |
30 | 29 | <build.folder.application.p2>VirSat4_IDE</build.folder.application.p2>
|
31 | 30 | <build.folder.fullpath.p2>${build.folder.target.p2}/${build.folder.application.p2}/${build.folder.type}</build.folder.fullpath.p2>
|
32 | 31 | </properties>
|
|
38 | 37 | <plugin>
|
39 | 38 | <groupId>org.eclipse.tycho</groupId>
|
40 | 39 | <artifactId>tycho-p2-director-plugin</artifactId>
|
| 40 | + <executions> |
| 41 | + <execution> |
| 42 | + <id>create-distributions</id> |
| 43 | + <goals> |
| 44 | + <goal>materialize-products</goal> |
| 45 | + <goal>archive-products</goal> |
| 46 | + </goals> |
| 47 | + </execution> |
| 48 | + </executions> |
| 49 | + <configuration> |
| 50 | + <formats> |
| 51 | + <linux>tar.gz</linux> |
| 52 | + <win32>zip</win32> |
| 53 | + </formats> |
| 54 | + <products> |
| 55 | + <product> |
| 56 | + <id>de.dlr.sc.virsat.ide.product</id> |
| 57 | + <rootFolder>eclipse</rootFolder> |
| 58 | + <archiveFileName>${build.file}</archiveFileName> |
| 59 | + </product> |
| 60 | + </products> |
| 61 | + </configuration> |
41 | 62 | </plugin>
|
42 | 63 |
|
43 | 64 | <plugin>
|
|
49 | 70 | <configuration>
|
50 | 71 | <target>
|
51 | 72 | <fail
|
52 |
| - message="Cannot Release!!! Release folder already exists !!! Potential overwrite to ${build.folder.fullpath} !!!"> |
| 73 | + message="Cannot Release!!! Release folder already exists !!! Potential overwrite to ${build.folder.fullpath.p2} !!!"> |
53 | 74 | <condition>
|
54 | 75 | <and>
|
55 | 76 | <equals arg1="${build.deploy.release}" arg2="true" />
|
|
74 | 95 | <configuration>
|
75 | 96 | <target>
|
76 | 97 | <fail
|
77 |
| - message="Cannot Release!!! Release folder already exists !!! Potential overwrite to ${build.folder.fullpath} !!!"> |
| 98 | + message="Cannot Release!!! Release folder already exists !!! Potential overwrite to ${build.folder.fullpath.bin} !!!"> |
78 | 99 | <condition>
|
79 | 100 | <and>
|
80 | 101 | <equals arg1="${build.deploy.release}" arg2="true" />
|
81 |
| - <available file="${build.folder.fullpath}" type="dir" /> |
| 102 | + <available file="${build.folder.fullpath.bin}" type="dir" /> |
82 | 103 | </and>
|
83 | 104 | </condition>
|
84 | 105 | </fail>
|
85 | 106 |
|
86 | 107 | <!-- ANT Script Start -->
|
87 |
| - <mkdir dir="${build.folder.fullpath}" /> |
88 |
| - |
89 |
| - <delete file="${build.file.win32.fullpath}" /> |
90 |
| - <delete file="${build.file.linux.fullpath}" /> |
91 |
| - |
92 |
| - <zip destfile="${build.file.win32.fullpath}" |
93 |
| - basedir="./target/products/de.dlr.sc.virsat.ide.product/win32/win32/x86_64" /> |
94 |
| - <tar destfile="${build.file.linux.fullpath}" |
95 |
| - basedir="./target/products/de.dlr.sc.virsat.ide.product/linux/gtk/x86_64" |
96 |
| - compression="gzip" |
97 |
| - longfile="gnu" /> |
98 |
| - <!-- ANT Script Stop --> |
| 108 | + <delete dir="${build.folder.fullpath.bin}" /> |
| 109 | + <copy toDir="${build.folder.fullpath.bin}"> |
| 110 | + <fileset dir="./target/products/"> |
| 111 | + <include name="*.tar.gz"/> |
| 112 | + <include name="*.zip"/> |
| 113 | + </fileset> |
| 114 | + </copy> |
| 115 | + |
99 | 116 | </target>
|
100 | 117 | </configuration>
|
101 | 118 | <goals>
|
|
0 commit comments