Revision 38811
branches/v2_0_0_prep/frameworks/_fwAndami/src/org/gvsig/andami/Launcher.java | ||
---|---|---|
3275 | 3275 |
|
3276 | 3276 |
private PackageInfo getPackageInfo(String pluginsFolder) { |
3277 | 3277 |
try { |
3278 |
File packageInfoFile = FileUtils.getFile(pluginsFolder, |
|
3279 |
"org.gvsig.app", "package.info"); |
|
3278 |
PluginsManager pm = PluginsLocator.getManager(); |
|
3279 |
|
|
3280 |
File packageInfoFile = new File( |
|
3281 |
pm.getApplicationFolder(), "package.info"); |
|
3280 | 3282 |
if (packageInfoFile.exists()) { |
3281 | 3283 |
InstallerManager installerManager = InstallerLocator.getInstallerManager(); |
3282 | 3284 |
FileInputStream fis = new FileInputStream(packageInfoFile); |
... | ... | |
3394 | 3396 |
|
3395 | 3397 |
// set the gvSIG version to the install manager, to compose the download URL |
3396 | 3398 |
if( packageInfo!=null ) { |
3397 |
installerManager.setVersion(packageInfo.getVersion().toString());
|
|
3399 |
installerManager.setVersion(packageInfo.getVersion()); |
|
3398 | 3400 |
} else { |
3399 | 3401 |
installerManager.setVersion(gvSIGVersion); |
3400 | 3402 |
} |
branches/v2_0_0_prep/applications/appgvSIG/distribution/distribution.xml | ||
---|---|---|
34 | 34 |
<outputDirectory>${extension.install.dir.name} |
35 | 35 |
</outputDirectory> |
36 | 36 |
</file> |
37 |
<file> |
|
38 |
<source>package.info</source> |
|
39 |
<outputDirectory>${extension.install.dir.name}/../../.. |
|
40 |
</outputDirectory> |
|
41 |
</file> |
|
37 | 42 |
</files> |
38 | 43 |
<!-- |
39 | 44 |
*********************************************************************** |
Also available in: Unified diff