Examples of AntTask


Examples of at.bestsolution.efxclipse.tooling.jdt.ui.internal.editors.model.anttasks.AntTask

      }
      catch ( Exception e ) {
        resource = new ResourceSetImpl().getResource( resourceURI, false );
      }

      AntTask task = (AntTask) resource.getContents().get( 0 );

      InputStream in = f.getContents();
      in.close();
      // TODO
      BuildConfiguration rv = prepareBuild( f, task );
View Full Code Here

Examples of at.bestsolution.efxclipse.tooling.jdt.ui.internal.editors.model.anttasks.AntTask

        e1.printStackTrace();
      }

      final IFile buildFile = fSecondPage.getJavaProject().getProject().getFile(new Path("build.fxbuild"));
      try {
        AntTask task = AntTasksFactory.eINSTANCE.createAntTask();
        task.setBuildDirectory( "${project}/build" );
        task.setDeploy( AntTasksFactory.eINSTANCE.createDeploy() );
        task.getDeploy().setApplication( ParametersFactory.eINSTANCE.createApplication() );
        task.getDeploy().getApplication().setName( fFirstPage.getProjectName() );       
        task.getDeploy().setInfo( ParametersFactory.eINSTANCE.createInfo() );
        task.setSignjar( AntTasksFactory.eINSTANCE.createSignJar() );
       
        final XMIResource resource= new XMIResourceImpl();
        resource.getContents().add( task );
       
        WorkspaceModifyOperation operation = new WorkspaceModifyOperation() {
View Full Code Here

Examples of at.bestsolution.efxclipse.tooling.jdt.ui.internal.editors.model.anttasks.AntTask

   */
  @Override
  protected T doSwitch(int classifierID, EObject theEObject) {
    switch (classifierID) {
      case AntTasksPackage.ANT_TASK: {
        AntTask antTask = (AntTask)theEObject;
        T result = caseAntTask(antTask);
        if (result == null) result = defaultCase(theEObject);
        return result;
      }
      case AntTasksPackage.DEPLOY: {
View Full Code Here

Examples of at.bestsolution.efxclipse.tooling.jdt.ui.internal.editors.model.anttasks.AntTask

  protected void createPages() {
    createModel();

    // Only creates the other pages if there is something that can be edited
    if ( !editingDomain.getResourceSet().getResources().isEmpty() ) {
      AntTask task = getTask();
      createPageOverview( task );
      createPageDeploy( task );
      createPageSigning( task );
    }
View Full Code Here

Examples of at.bestsolution.efxclipse.tooling.jdt.ui.internal.editors.model.anttasks.AntTask

      }
    } );
  }

  private AntTask getTask() {
    AntTask task;
    try {
      task = (AntTask) editingDomain.getResourceSet().getResources().get( 0 ).getContents().get( 0 );
    }
    catch ( Exception e ) {
      if ( !properties.isEmpty() ) {
View Full Code Here

Examples of at.bestsolution.efxclipse.tooling.jdt.ui.internal.editors.model.anttasks.AntTask

   *            properties
   * @return the created ant task instance.
   */
  public static AntTask transform( final Properties properties ) {
    // This is an old properties file -> transform to EMF/XMI
    AntTask task = AntTasksFactory.eINSTANCE.createAntTask();
    task.setBuildDirectory( properties.getProperty( MAPPING.get( BUILD_DIRECTORY ) ) );

    // TODO extract Manifest entries from properties.

    // Deploy
    task.setDeploy( AntTasksFactory.eINSTANCE.createDeploy() );
    task.getDeploy().setSplashImage( properties.getProperty( MAPPING.get( BUILD_SPLASH_IMAGE ) ) );

    // Deploy -> Info
    task.getDeploy().setInfo( ParametersFactory.eINSTANCE.createInfo() );
    task.getDeploy().getInfo().setVendor( properties.getProperty( MAPPING.get( BUILD_VENDOR_NAME ) ) );

    task.getDeploy().setWidth( properties.getProperty( MAPPING.get( DEPLOY_APPLET_WIDTH ) ) );
    task.getDeploy().setHeight( properties.getProperty( MAPPING.get( DEPLOY_APPLET_HEIGHT ) ) );

    // TODO Webstart Splash

    // TODO Webstart Icons

    // Deploy -> Application
    task.getDeploy().setApplication( ParametersFactory.eINSTANCE.createApplication() );
    task.getDeploy().getApplication().setName( properties.getProperty( MAPPING.get( BUILD_APP_TITLE ) ) );
    task.getDeploy().getApplication().setVersion( properties.getProperty( MAPPING.get( BUILD_APP_VERSION ) ) );
    task.getDeploy().getApplication().setMainclass( properties.getProperty( MAPPING.get( BUILD_APPLICATION_CLASS ) ) );
    task.getDeploy().getApplication().setPreloaderclass( properties.getProperty( MAPPING.get( BUILD_PRELOADER_CLASS ) ) );

    // SignJar
    task.setSignjar( AntTasksFactory.eINSTANCE.createSignJar() );
    task.getSignjar().setKeystore( properties.getProperty( MAPPING.get( SIGN_KEYSTORE ) ) );
    task.getSignjar().setStorepass( properties.getProperty( MAPPING.get( SIGN_PASSWORD ) ) );
    task.getSignjar().setAlias( properties.getProperty( MAPPING.get( SIGN_ALIAS ) ) );
    task.getSignjar().setKeypass( properties.getProperty( MAPPING.get( SIGN_KEYPASSWOARD ) ) );

    return task;
  }
View Full Code Here

Examples of org.apache.lenya.cms.task.AntTask

            Configuration configuration
                = configurationBuilder.build(tasksConfigurationResource.toString());
            
            TaskManager manager = new TaskManager();
            manager.configure(configuration);
            AntTask task = (AntTask) manager.getTask(taskId);
           
            Parameters parameters = new Parameters();
           
            URL buildfileResource
                = getClass().getClassLoader().getResource("org/apache/lenya/cms/task/tasks.xml");
            File buildfile = new File(new URI(buildfileResource.toString()));
            parameters.setParameter(AntTask.BUILDFILE, buildfile.getAbsolutePath());
            task.parameterize(parameters);
           
            String servletContextPath = task.getParameters().getParameter(Task.PARAMETER_SERVLET_CONTEXT);
            task.execute(servletContextPath);
            
        } catch (Exception e) {
            e.printStackTrace(System.err);
        }
    }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.