2016-05-31 11 views
7

Sto tentando di aggiornare il mio progetto da Eclipse 3.8.2 a Eclipse 4.5.2. Mentre sto costruendo il mio progetto con pde build, sto ricevendo questo errore seguente. \ Contents \ MacOS non esiste.Contenuti/MacOS non esiste in 4.5.2

Questa parte funzionava correttamente con la versione precedente.

Ho aggiornato SDK Java, delta pack per 4.5.2

Dettagli:

C:\p4root\common\build_templates\eclipse_pde\build.xml:144: The following error occurred while executing this line: 
[exec] C:\eclipse4.5.2\plugins\org.eclipse.pde.build_3.9.100.v20150521-1524\scripts\productBuild\productBuild.xml:45: The following error occurred while executing this line: 
[exec] C:\eclipse4.5.2\plugins\org.eclipse.pde.build_3.9.100.v20150521-1524\scripts\build.xml:129: The following error occurred while executing this line: 
[exec] C:\p4root\myproject\dev\build\myproject\configuration\customTargets.xml:29: The following error occurred while executing this line: 
[exec] C:\eclipse4.5.2\plugins\org.eclipse.pde.build_3.9.100.v20150521-1524\scripts\productBuild\allElements.xml:20: The following error occurred while executing this line: 
[exec] C:\eclipse4.5.2\plugins\org.eclipse.pde.build_3.9.100.v20150521-1524\scripts\genericTargets.xml:195: The following error occurred while executing this line: 
[exec] C:\p4root\myproject\dev\build\myproject\base\package.org.eclipse.pde.build.container.feature.all.xml:27: The following error occurred while executing this line: 
[exec] C:\p4root\myproject\dev\build\myproject\base\package.org.eclipse.pde.build.container.feature.all.xml:15: The following error occurred while executing this line: 
[exec] C:\eclipse4.5.2\plugins\org.eclipse.pde.build_3.9.100.v20150521-1524\scripts\productBuild\allElements.xml:35: The following error occurred while executing this line: 
[exec] C:\p4root\talon\dev\build\myproject\base\package.org.eclipse.pde.build.container.feature.macosx.cocoa.x86_64.xml:92: The following error occurred while executing this line: 
[exec] C:\p4root\myproject\dev\build\myproject\base\package.org.eclipse.pde.build.container.feature.macosx.cocoa.x86_64.xml:1555: C:\p4root\myproject\dev\build\myproject\base\tmp\eclipse\Contents\MacOS does not exist. 

Qualsiasi aiuto sarà appriciated

Grazie in anticipo

+0

Sei riuscito finalmente a risolvere questo? Ho esattamente lo stesso problema. – ZhekaKozlov

risposta

3

Eclipse 4.5 è confezionato come un'applicazione per Mac OS X. Sebbene il nome sia visualizzato come eclipse, il nome effettivo della directory è eclipse.app. Quindi è necessario modificare il percorso per terminare con eclipse.app/Contents/MacOS

+0

Questo non risponde alla domanda – ZhekaKozlov

+0

@ZhekaKozlov Dato che la domanda non mostra nessuno dei file di configurazione usati per la compilazione, questo è circa quanto è stato possibile dire. Potresti fare meglio a fare una nuova domanda mostrando più informazioni –

0

Ho finalmente trovato una soluzione alternativa. Ho aggiunto una funzione di callback per pre.archivecusstomAssembly.xml che spostare i file nelle cartelle destra:

<target name="pre.archive"> 
    <condition property="is.macosx"> 
     <equals arg1="${config}" arg2="macosx.cocoa.x86_64"/> 
    </condition> 

    <!-- Do only for OS X --> 
    <antcall target="move.macosx.files" /> 
</target> 

<target name="move.macosx.files" if="is.macosx"> 
    <copy todir="${eclipse.base}/${launcherName}.app/Contents/MacOS" verbose="true"> 
     <fileset dir="${eclipse.base}/../MacOS" /> 
    </copy> 
    <copy todir="${eclipse.base}/${launcherName}.app/Contents/Resources" verbose="true"> 
     <fileset dir="${eclipse.base}/../Resources" /> 
    </copy> 
    <move file="${eclipse.base}/${launcherName}.ini" todir="${eclipse.base}/${launcherName}.app/Contents/MacOS" verbose="true" /> 
    <replace file="${eclipse.base}/${launcherName}.app/Contents/MacOS/${launcherName}.ini" token="tmp" value="../.."/> 
</target> 

La seconda soluzione è quella di utilizzare Eclipse 4.4 Luna invece di 4.5+. Maggiori informazioni su questo sono qui: https://bugs.eclipse.org/bugs/show_bug.cgi?id=468131