protected void generateMetadataTarget() { if (configScriptGenerator.haveP2Bundles()) { script.printTargetDeclaration(TARGET_P2_METADATA, null, TARGET_P2_METADATA, null, null); ProductFile product = configScriptGenerator.getProductFile(); String productPath = null; if (product != null) { File productFile = new File(product.getLocation()); String modLocation = getProductDir() + productFile.getName(); script.printAvailableTask(PROPERTY_P2_PRODUCT_MOD, modLocation, modLocation); script.printProperty(PROPERTY_P2_PRODUCT_MOD, product.getLocation()); productPath = Utils.getPropertyFormat(PROPERTY_P2_PRODUCT_MOD); } script.printProperty(PROPERTY_P2_APPEND, "true"); // $NON-NLS-1$ script.printProperty(PROPERTY_P2_COMPRESS, "false"); // $NON-NLS-1$ script.printProperty(PROPERTY_P2_METADATA_REPO_NAME, ""); // $NON-NLS-1$ script.printProperty(PROPERTY_P2_ARTIFACT_REPO_NAME, ""); // $NON-NLS-1$ String versionAdvice = null; if (versionsList && product != null) { if (product.useFeatures()) versionAdvice = getWorkingDirectory() + '/' + DEFAULT_FEATURE_VERSION_FILENAME_PREFIX + PROPERTIES_FILE_SUFFIX; else versionAdvice = getWorkingDirectory() + '/' + DEFAULT_PLUGIN_VERSION_FILENAME_PREFIX + PROPERTIES_FILE_SUFFIX; } generateP2FinalCall(script, productPath, versionAdvice); script.printTargetEnd(); } }