/** * Adds dir properties to ANT-Buildfile: * <ul> * <li><property name="dir.buildfile" value="." /></li> * <li><property name="dir.workspace" value="${dir.buildfile}/../.." /></li> * <li><property name="dir.jarfile" value="C:/TEMP" /></li> * </ul> * * @param document the DOM document of the ant build script * @param project the project tag */ protected void addBaseDirProperties(Document document, Element project) { Node comment= document.createComment("define folder properties"); //$NON-NLS-1$ project.appendChild(comment); Element property= document.createElement("property"); //$NON-NLS-1$ property.setAttribute("name", ANT_PROPERTYNAME_DIR_BUILDFILE); //$NON-NLS-1$ property.setAttribute("value", "."); //$NON-NLS-1$ //$NON-NLS-2$ project.appendChild(property); property= document.createElement("property"); //$NON-NLS-1$ property.setAttribute("name", ANT_PROPERTYNAME_DIR_WORKSPACE); //$NON-NLS-1$ property.setAttribute("value", getWorkspaceRelativeDir()); //$NON-NLS-1$ project.appendChild(property); property= document.createElement("property"); //$NON-NLS-1$ property.setAttribute("name", ANT_PROPERTYNAME_DIR_JARFILE); //$NON-NLS-1$ property.setAttribute("value", getJarfileRelativeDir()); //$NON-NLS-1$ project.appendChild(property); }
/** * Adds dir properties to ANT-Buildfile: * <ul> * <li><property name="dir.buildfile" value="." /></li> * <li><property name="dir.workspace" value="${dir.buildfile}/../.." /></li> * <li><property name="dir.jarfile" value="C:/TEMP" /></li> * </ul> * * @param document the DOM document of the ant build script * @param project the project tag */ protected void addBaseDirProperties(Document document, Element project) { Node comment= document.createComment("define folder properties"); //$NON-NLS-1$ project.appendChild(comment); Element property= document.createElement("property"); //$NON-NLS-1$ property.setAttribute("name", ANT_PROPERTYNAME_DIR_BUILDFILE); //$NON-NLS-1$ property.setAttribute("value", "."); //$NON-NLS-1$ //$NON-NLS-2$ project.appendChild(property); property= document.createElement("property"); //$NON-NLS-1$ property.setAttribute("name", ANT_PROPERTYNAME_DIR_WORKSPACE); //$NON-NLS-1$ property.setAttribute("value", getWorkspaceRelativeDir()); //$NON-NLS-1$ project.appendChild(property); property= document.createElement("property"); //$NON-NLS-1$ property.setAttribute("name", ANT_PROPERTYNAME_DIR_JARFILE); //$NON-NLS-1$ property.setAttribute("value", getJarfileRelativeDir()); //$NON-NLS-1$ project.appendChild(property); }