eclipse plugin: Tweak a bit the PDE Build.
Now, the built standalone + update site works as intended.
This commit is contained in:
parent
fdd85bc95c
commit
8ca54b2112
4 changed files with 34 additions and 35 deletions
|
@ -73,15 +73,22 @@ subprocess.call( [
|
|||
"-buildfile", "build.xml" ] )
|
||||
|
||||
# Some cleanup
|
||||
if os.path.exists( "../org.wesnoth.feature/build.xml" ):
|
||||
os.remove( "../org.wesnoth.feature/build.xml" )
|
||||
if os.path.exists( "../org.wesnoth.feature/feature.temp.folder" ):
|
||||
os.remove( "../org.wesnoth.feature/feature.temp.folder" )
|
||||
if os.path.exists( "../org.wesnoth/build.xml" ):
|
||||
os.remove( "../org.wesnoth/build.xml" )
|
||||
if os.path.exists( "../org.wesnoth.ui/build.xml" ):
|
||||
os.remove( "../org.wesnoth.ui/build.xml" )
|
||||
print "Cleaning up..."
|
||||
# Some cleanup
|
||||
to_cleanup = [
|
||||
"../org.wesnoth.feature/build.xml",
|
||||
"../org.wesnoth/build.xml",
|
||||
"../org.wesnoth.ui/build.xml",
|
||||
"../org.wesnoth/javaCompiler...args",
|
||||
"../org.wesnoth.ui/javaCompiler...args" ]
|
||||
|
||||
for cleanup_file in to_cleanup:
|
||||
try: os.remove( cleanup_file )
|
||||
except: pass
|
||||
|
||||
try: shutil.rmtree( "../org.wesnoth.feature/feature.temp.folder" )
|
||||
except: pass
|
||||
|
||||
# Local variables:
|
||||
# mode: python
|
||||
# end:
|
||||
|
|
|
@ -20,8 +20,7 @@ p2.artifact.repo.name=Wesnoth Eclipse Plugins
|
|||
p2.build.repo=file:${buildDirectory}/repository
|
||||
p2.metadata.repo=file:${buildDirectory}/repository
|
||||
p2.artifact.repo=file:${buildDirectory}/repository
|
||||
p2.category.site=file:${basedir}/site.xml
|
||||
p2.category.definition=file:${basedir}/category.xml
|
||||
p2.category.definition=file:${basedir}/../org.wesnoth.feature/category.xml
|
||||
|
||||
#Set the name of the archive that will result from the product build.
|
||||
archiveNamePrefix=wesnoth_umc_dev
|
||||
|
@ -37,10 +36,10 @@ collectingFolder=${archivePrefix}
|
|||
# configs=win32,win32,x86 & linux,motif,x86
|
||||
# By default the value is *,*,*
|
||||
configs=win32, win32, x86 &\
|
||||
win32,win32,x86_64 & \
|
||||
linux, gtk, x86 & \
|
||||
linux, gtk, x86_64 & \
|
||||
macosx, cocoa, x86_64
|
||||
win32,win32,x86_64 & \
|
||||
linux, gtk, x86 & \
|
||||
linux, gtk, x86_64 & \
|
||||
macosx, cocoa, x86_64
|
||||
|
||||
#Allow cycles involving at most one bundle that needs to be compiled with the rest being binary bundles.
|
||||
allowBinaryCycles = true
|
||||
|
|
|
@ -9,24 +9,32 @@
|
|||
|
||||
<!-- Check that we have a deltapack -->
|
||||
<available property="haveDeltaPack" file="${deltapack}"/>
|
||||
<fail unless="haveDeltaPack" message="The deltapack is required to build this product. Please edit buildProduct.xml or set the "deltapack" property." />
|
||||
|
||||
<fail unless="haveDeltaPack" message="The deltapack is required to build this product. Please set the "deltapack" property." />
|
||||
|
||||
<property name="builder" value="${basedir}" />
|
||||
<property name="buildDirectory" value="${basedir}/buildDirectory"/>
|
||||
<property name="pluginPath" value="${basedir}/..${path.separator}${deltapack}" />
|
||||
<property name="buildTempFolder" value="${buildDirectory}" />
|
||||
|
||||
|
||||
<!-- clear previous builds -->
|
||||
<delete>
|
||||
<fileset dir="${basedir}/update_site"/>
|
||||
</delete>
|
||||
<delete>
|
||||
<fileset dir="${basedir}/${buildLabel}"/>
|
||||
</delete>
|
||||
|
||||
<ant antfile="${eclipse.pdebuild.scripts}/productBuild/productBuild.xml" />
|
||||
|
||||
<move todir="${basedir}/${buildLabel}">
|
||||
<fileset dir="${buildDirectory}/${buildLabel}" includes="*.zip"/>
|
||||
</move>
|
||||
|
||||
<move todir="${basedir}/update_site">
|
||||
<fileset dir="${buildDirectory}/repository"/>
|
||||
</move>
|
||||
<delete>
|
||||
<fileset dir="${basedir}/update_site/binary" />
|
||||
</delete>
|
||||
|
||||
<!-- remove non-wesnoth plugins -->
|
||||
<delete>
|
||||
<fileset dir="${basedir}/update_site/plugins">
|
||||
<exclude name="org.wesnoth*"/>
|
||||
|
@ -34,4 +42,3 @@
|
|||
</delete>
|
||||
</target>
|
||||
</project>
|
||||
|
|
@ -1,14 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<site>
|
||||
<description name="Wesnoth Eclipse Updates" url="http://eclipse.wesnoth.org/">
|
||||
The default update site for Wesnoth Eclipse Plugins
|
||||
</description>
|
||||
<feature url="features/org.wesnoth_1.0.3.jar" id="org.wesnoth" version="1.0.3" os="linux,macosx,win32">
|
||||
<category name="Wesnoth_Eclipse_Plugins"/>
|
||||
</feature>
|
||||
<category-def name="Wesnoth_Eclipse_Plugins" label="Wesnoth Eclipse Plugins">
|
||||
<description>
|
||||
This category contains the Wesnoth Eclipse Tools
|
||||
</description>
|
||||
</category-def>
|
||||
</site>
|
Loading…
Add table
Reference in a new issue