Uploaded image for project: 'Red Hat CodeReady Studio (devstudio)'
  1. Red Hat CodeReady Studio (devstudio)
  2. JBDS-29

Ant build.xml file not selectable from Ant View for imported JSF projects

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: Major Major
    • None
    • None
    • None
    • None
    • Hide

      If I copy my build.xml to my $HOME/Workspace project folder, the Ant View is able to find it. However, my build.xml file has lines inside it like this:

      <import file="../build-common-portlet.xml" />

      Which makes the execution of the Ant targets fail, because these don't live in my Workspace. Again, implementing RHDS-274 would probably fix this.

      Show
      If I copy my build.xml to my $HOME/Workspace project folder, the Ant View is able to find it. However, my build.xml file has lines inside it like this: <import file="../build-common-portlet.xml" /> Which makes the execution of the Ant targets fail, because these don't live in my Workspace. Again, implementing RHDS-274 would probably fix this.

      I imported an existing JSF project using File->Import...>Other>JSF-Project and it worked great. It has a folder structure like this:

      my-project
      my-project/build.xml
      my-project/docroot
      my-project/docroot/WEB-INF
      my-project/docroot/WEB-INF/src

      As I said, the importer did a fantastic job of finding everything in my JSF project. However, on my "Ant" view, I am unable to select the my-project/build.xml file.

      The importer created a project folder in my $HOME/Workspace rather than in the project directory itself. This is actually a consequence of RHDS-274.

      I am able to associate an "Ant Builder" with my project, instead of the standard Java Builder. Unfortunately, this does not enable me to execute specialized targets within my build.xml file, whenever I want. Basically just clean and build.

            Unassigned Unassigned
            ngriffin7a_jira Neil Griffin (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: