IdentifiantMot de passe
Loading...
Mot de passe oublié ?Je m'inscris ! (gratuit)
Navigation

Inscrivez-vous gratuitement
pour pouvoir participer, suivre les réponses en temps réel, voter pour les messages, poser vos propres questions et recevoir la newsletter

Eclipse Platform Discussion :

générer un executable RCP en ligne de commande


Sujet :

Eclipse Platform

  1. #1
    Futur Membre du Club
    Profil pro
    Inscrit en
    Juin 2004
    Messages
    11
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2004
    Messages : 11
    Points : 9
    Points
    9
    Par défaut générer un executable RCP en ligne de commande
    Bonjour,

    J'aimerai générer en ligne de commande un executable RCP.

    Cette opération est possible à partir d'eclipse en faisant clic droit, Export
    Plug-in development/Eclipse Product puis Next, on choisit le .product et le dossier ou sera exporter notre application puis Finish.

    Seulement je veux faire ceci en ligne de commande.

    J'ai trouvé un tuto dans Eclipse/Help/HelpContent :

    Building an RCP application from a product configuration file

    Basic setup
    The first step in setting up a build is to create the directory in which the build will take place. This directory will be referred to as the build directory and will contain the plug-ins and features to build as well as all the generated artifacts. Next, copy your plug-ins and features respectively into "plugins" and "features" subdirectories. Your product configuration file is expected to be in one of these plugins/features.

    The second step in setting up a build is to copy the template build.properties file from org.eclipse.pde.build/templates/headless-build to a new directory which will be the build configuration directory (also referred to as the configuration directory). Edit the copied build.properties file and set the following properties:

    product: the location of your product configuration file in the form "/<plugin or feature id>/path/to/.product"
    baseLocation: the location of an eclipse install containing all the pre-built features and plug-ins that your product requires in features/ and plugins/ subdirectories. The RCP delta pack (it is available from the eclipse download page) is mandatory as it includes the org.eclipse.platform.launchers feature which contains the launchers and root files necessary for a product.
    buildDirectory: the directory the build will take place in. Set this to the full path of the build directory created previously.
    configs: list the configurations for which you want your product to be built. You can uncomment the configuration(s) provided (be careful of the line continuations).
    archivePrefix: the name of the directory of your product once installed on disk.
    Overview of the directory structure
    <buildDirectory>/
    plugins/
    pluginToBuildA
    pluginToBuildB
    myProduct.product
    ...
    features/
    featureToBuild
    ...
    <buildConfiguration>/
    build.properties
    <baseLocation>
    plugins/
    org.eclipse.core.runtime
    ...
    features/
    org.eclipse.rcp
    org.eclipse.platform.launchers
    ...
    Running the build
    To run the build you will use the org.elipse.ant.core.antRunner application. When invoking eclipse with this application to perform a build you need to set two arguments on the command line:

    -buildfile </path/to/productBuild.xml>: This is the path to the productBuild.xml provided by pde build. It is located in the org.eclipse.pde.build/scripts/productBuild directory. This is the build file that drives the whole product build process.
    -Dbuilder=</path/to/configuration folder>: This is the path to the build configuration folder.
    Run the antRunner application using the following command:

    java -jar <eclipseInstall>/startup.jar -application org.eclipse.ant.core.antRunner -buildfile <<eclipseInstall>/plugins/org.eclipse.pde.build_<version>/scripts/productBuild/productBuild.xml> -Dbuilder=<path to the build configuration folder>
    et lorsque j'execute la ligne de commande

    java -jar <eclipseInstall>/startup.jar -application org.eclipse.ant.core.antRunner -buildfile <<eclipseInstall>/plugins/org.eclipse.pde.build_<version>/scripts/productBuild/productBuild.xml> -Dbuilder=<path to the build configuration folder>
    j'ai une erreur incomprehensible

    main:

    preBuild:

    preSetup:

    checkLocalMaps:

    getMapFiles:
    [concat] No existing files and no nested text, doing nothing

    postSetup:

    checkLocalBase:

    getBaseComponents:

    generateFeature:

    fetch:

    generateFeature:

    BUILD FAILED
    C:\eclipse\plugins\org.eclipse.pde.build_3.2.1.r321_v20060823\scripts\productBuild\productBuild.xml:21: The following error occurred while executing this line:
    C:\eclipse\plugins\org.eclipse.pde.build_3.2.1.r321_v20060823\scripts\productBuild\productBuild.xml:45: Internal Error. Content Provider not set for Site: "{0}".

    Total time: 1 second
    C:\eclipse\plugins\org.eclipse.pde.build_3.2.1.r321_v20060823\scripts\productBuild\productBuild.xml:45: Internal Error. Content Provider not set for Site: "{0}".

    Je n'arrive pas à enlever cette erreur.

    Si vous avez dejà essayés de générer un executable RCP d'eclipse par ligne de commande votre expérience me sera utile

    merci d'avance

  2. #2
    Futur Membre du Club
    Profil pro
    Inscrit en
    Juin 2004
    Messages
    11
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Juin 2004
    Messages : 11
    Points : 9
    Points
    9
    Par défaut
    Bon en fait, j'ai trouvé l'erreur.
    Dans le fichier build.properties, au niveau du champ baseLocation, j'avais mis "<c:/eclipse>" or c'est "c:/eclipse" qu'il fallait mettre.

  3. #3
    Candidat au Club
    Profil pro
    Inscrit en
    Novembre 2006
    Messages
    2
    Détails du profil
    Informations personnelles :
    Localisation : France

    Informations forums :
    Inscription : Novembre 2006
    Messages : 2
    Points : 2
    Points
    2
    Par défaut
    Salut à tous et BONNE ANNEE!!!!

    Je profite de ce topic pour vous exposer mon problème.
    J'ai une application RCP que j'aimerais exporter.
    Pour commencer doucement je tente de le faire avec l'exemple RCP Hello qui peut être généré par Eclipse.
    Puis j'ai suivi les instructions données sur :
    http://help.eclipse.org/help32/index...duct_build.htm
    Mais lors de la génération de l'executable j'ai l'exception suivantes:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
    12
    13
    14
    15
    16
    17
    18
    19
    20
    21
    22
    23
     
    main:
     
    preBuild:
     
    preSetup:
     
    checkLocalMaps:
     
    getMapFiles:
       [concat] No existing files and no nested text, doing nothing
     
    postSetup:
     
    checkLocalBase:
     
    getBaseComponents:
     
    generateFeature:
     
    BUILD FAILED
    /user/jmlegait/home/eclipse/plugins/org.eclipse.pde.build_3.2.0.v20060603/scripts/productBuild/productBuild.xml:19: The following error occurred while executing this line:
    /user/jmlegait/home/eclipse/plugins/org.eclipse.pde.build_3.2.0.v20060603/scripts/productBuild/productBuild.xml:49: java.lang.UnsupportedOperationException
    Je ne comprend pas pourquoi j'ai cette erreur.
    Voici les lignes du fichiers concernés:

    Code : Sélectionner tout - Visualiser dans une fenêtre à part
    1
    2
    3
    4
    5
    6
    7
    8
    9
    10
    11
     
        <eclipse.generateFeature
          featureId="org.eclipse.pde.build.container.feature"
            buildDirectory="${buildDirectory}"
    	baseLocation="${baseLocation}"
          productFile="${product}"
          verify="${verify}"
          pluginPath="${pluginPath}"
          configInfo="${configs}"
          pluginList="${pluginList}"
          featureList="${featureList}"/>  <!-- ligne 49 -->
    J'espere que l'un d'entres vous pourra m'aider,

    J'ai peut être mal configuré le fichier build.properties, Aldouille pourrais tu me montrer le tien?

    Merci a tous!

    Amicalement,
    Jean-Mic

+ Répondre à la discussion
Cette discussion est résolue.

Discussions similaires

  1. Réponses: 8
    Dernier message: 27/08/2007, 08h07
  2. executer Eclipse en ligne de commande
    Par freddy45fr dans le forum Eclipse Platform
    Réponses: 2
    Dernier message: 23/07/2007, 15h56
  3. execution programme en ligne de commande
    Par Gothico dans le forum VB 6 et antérieur
    Réponses: 1
    Dernier message: 20/06/2007, 17h26
  4. [RCP] generation du rcp en ligne de commande avec ant
    Par albeau dans le forum Eclipse Platform
    Réponses: 5
    Dernier message: 01/09/2006, 17h34

Partager

Partager
  • Envoyer la discussion sur Viadeo
  • Envoyer la discussion sur Twitter
  • Envoyer la discussion sur Google
  • Envoyer la discussion sur Facebook
  • Envoyer la discussion sur Digg
  • Envoyer la discussion sur Delicious
  • Envoyer la discussion sur MySpace
  • Envoyer la discussion sur Yahoo