Details

    • Type: Bug
    • Status: Closed (View Workflow)
    • Resolution: Duplicate
    • Affects Version/s: 4.0
    • Fix Version/s: 4.0.1
    • Component/s: SDK
    • Labels:
      None
    • Bug Priority:
      Category 4

      Description

      Since Alfresco 4.0a the .classpath files generated for Server or Remote SDK projects start with blank characters (see SDK official bundles for 4.0a or 4.0b)
      This results in an invalid XML file (should start with <?xml) and Eclipse (didn't try any other IDE) couldn't interpret it.

      The bug seems to be introduced in revision 28776 of macros.xml file.

      In previous revisions definition was :
      <macrodef name="generate-classpath">
      <attribute name="libdir"/>
      <attribute name="classfile"/>
      <attribute name="classprop"/>
      <!-- as part of fix for ETHREEOH-3996 - allow extra directories to be added to the classpath -->
      <attribute name="optionalDirs" default=""/>

      <sequential>
      <echo file="@

      {classfile}"><![CDATA[<?xml version="1.0" encoding="UTF-8"?>
      <classpath>

      Now it is :
      <macrodef name="generate-classpath">
      <attribute name="libdir"/>
      <attribute name="classfile"/>
      <attribute name="classprop"/>
      <!-- as part of fix for ETHREEOH-3996 - allow extra directories to be added to the classpath -->
      <attribute name="optionalDirs" default=""/>

      <sequential>
      <echo file="@{classfile}

      ">
      <![CDATA[<?xml version="1.0" encoding="UTF-8"?>

        Attachments

          Issue Links

            Structure

              Activity

                People

                • Assignee:
                  closedissues Closed Issues
                  Reporter:
                  cleseach Charles Le Seac'h
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  1 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved:

                    Structure Helper Panel