[ooo-build-commit] ooeclipse: Branch 'master'

Dan Corneanu cdan at kemper.freedesktop.org
Sat Jan 8 15:22:45 PST 2011


 core/source/org/openoffice/ide/eclipse/core/gui/PackageContentSelector.java |    8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

New commits:
commit c4eadf90bb004c49802f17b96dd30254676da846
Author: Dan Corneanu <cdan at savatech.ro>
Date:   Sun Jan 9 01:20:33 2011 +0200

    Fixed: [ooeclipse] Export LibreOffice package
    https://bugs.freedesktop.org/show_bug.cgi?id=32925

diff --git a/core/source/org/openoffice/ide/eclipse/core/gui/PackageContentSelector.java b/core/source/org/openoffice/ide/eclipse/core/gui/PackageContentSelector.java
index a62dc4e..3972b0e 100644
--- a/core/source/org/openoffice/ide/eclipse/core/gui/PackageContentSelector.java
+++ b/core/source/org/openoffice/ide/eclipse/core/gui/PackageContentSelector.java
@@ -177,7 +177,13 @@ public class PackageContentSelector extends Composite {
 
         // Create the package model
         pack = UnoidlProjectHelper.createMinimalUnoPackage( pProject, pDestFile );
-        pack.addToClean( SystemHelper.getFile( library ) );
+
+        if(library.exists()){
+            pack.addToClean( SystemHelper.getFile( library ) );
+            File libraryFile = SystemHelper.getFile(library);
+            pack.addFile(UnoPackage.getPathRelativeToBase(libraryFile, prjFile), 
+                            libraryFile);
+        }
         
         IFile descrFile = pProject.getFile( IUnoidlProject.DESCRIPTION_FILENAME );
         if ( descrFile.exists() ) {


More information about the ooo-build-commit mailing list