public void readAdditionalProperties(List<Item> items, String projectXMLElement) { Map<String, String> destination = new HashMap<String, String>(); List<String> l = getIncludedLibraries(helper, projectXMLElement, destination); for (Item item : items) { boolean b = l.contains(item.getReference()); item.setAdditionalProperty(INCLUDE_IN_DEPLOYMENT, Boolean.toString(b)); String dest = destination.get(item.getReference()); if (b && dest != null) { item.setAdditionalProperty(AntProjectConstants.DESTINATION_DIRECTORY, dest); } } }
public void readAdditionalProperties(List<Item> items, String projectXMLElement) { Map<String, String> destination = new HashMap<String, String>(); List<String> l = getIncludedLibraries(antProjectHelper, projectXMLElement, destination); for (Item item : items) { boolean b = l.contains(item.getReference()); item.setAdditionalProperty(INCLUDE_IN_DEPLOYMENT, Boolean.toString(b)); String dest = destination.get(item.getReference()); if (b && dest != null) { item.setAdditionalProperty(AntProjectConstants.DESTINATION_DIRECTORY, dest); } } }
@Override public void setValueAt(Object value, int row, int column) { if (column != 1 || !(value instanceof Boolean)) { return; } getItem(row).setAdditionalProperty(ClassPathSupportCallbackImpl.INCLUDE_IN_DEPLOYMENT, Boolean.toString(Boolean.TRUE.equals(value))); fireTableCellUpdated(row, column); }
public void initItem(ClassPathSupport.Item item) { switch (item.getType()) { case ClassPathSupport.Item.TYPE_JAR: item.setAdditionalProperty(ClassPathSupportCallbackImpl.PATH_IN_DEPLOYMENT, item.getResolvedFile().isDirectory() ? ClassPathSupportCallbackImpl.PATH_IN_WAR_DIR : ClassPathSupportCallbackImpl.PATH_IN_WAR_LIB); break; case ClassPathSupport.Item.TYPE_LIBRARY: if (item.getLibrary().getType().equals(J2eePlatform.LIBRARY_TYPE)) { break; } item.setAdditionalProperty(ClassPathSupportCallbackImpl.PATH_IN_DEPLOYMENT, Utils.isLibraryDirectoryBased(item) ? ClassPathSupportCallbackImpl.PATH_IN_WAR_DIR : ClassPathSupportCallbackImpl.PATH_IN_WAR_LIB); break; default: item.setAdditionalProperty(ClassPathSupportCallbackImpl.PATH_IN_DEPLOYMENT, ClassPathSupportCallbackImpl.PATH_IN_WAR_LIB); } } };
public void setValueAt(Object value, int row, int column) { if (column != 1 || !(value instanceof Boolean)) { return; } if (Boolean.TRUE.equals(value)) { ClassPathSupport.Item item = getItem(row); String pathInWar = (item.getType() == ClassPathSupport.Item.TYPE_JAR && item.getResolvedFile().isDirectory()) || (item.getType() == ClassPathSupport.Item.TYPE_LIBRARY && Utils.isLibraryDirectoryBased(item)) ? ClassPathSupportCallbackImpl.PATH_IN_WAR_DIR : ClassPathSupportCallbackImpl.PATH_IN_WAR_LIB; item.setAdditionalProperty(ClassPathSupportCallbackImpl.PATH_IN_DEPLOYMENT, pathInWar); } else { getItem(row).setAdditionalProperty(ClassPathSupportCallbackImpl.PATH_IN_DEPLOYMENT, ClassPathSupportCallbackImpl.PATH_IN_WAR_NONE); } fireTableCellUpdated(row, column); }
public void initItem(ClassPathSupport.Item item) { if (item.getType() != ClassPathSupport.Item.TYPE_LIBRARY || !item.getLibrary().getType().equals(J2eePlatform.LIBRARY_TYPE)) { item.setAdditionalProperty(ClassPathSupportCallbackImpl.INCLUDE_IN_DEPLOYMENT, "true"); } } };
public void initItem(Item item) { if (item.getType() != ClassPathSupport.Item.TYPE_LIBRARY || !item.getLibrary().getType().equals(J2eePlatform.LIBRARY_TYPE)) { item.setAdditionalProperty(ClassPathSupportCallbackImpl.PATH_IN_DEPLOYMENT, "/"); //NOI18N } }
@Override public void setValueAt(Object value, int row, int column) { if (column != 1 || !(value instanceof Boolean)) { return; } getItem(row).setAdditionalProperty(ClassPathSupportCallbackImpl.INCLUDE_IN_DEPLOYMENT, Boolean.toString(value == Boolean.TRUE)); fireTableCellUpdated(row, column); }
public void initItem(ClassPathSupport.Item item) { if (item.getType() != ClassPathSupport.Item.TYPE_LIBRARY || !item.getLibrary().getType().equals(J2eePlatform.LIBRARY_TYPE)) { item.setAdditionalProperty(ClassPathSupportCallbackImpl.INCLUDE_IN_DEPLOYMENT, "true"); } } };
public void initItem(Item item) { if (path != null) { item.setAdditionalProperty(ClassPathSupportCallbackImpl.PATH_IN_DEPLOYMENT, path); } }
public void readAdditionalProperties(List<Item> items, String projectXMLElement) { Map<String, String> warIncludesMap = createWarIncludesMap(helper, projectXMLElement); for (Item item : items) { String property = CommonProjectUtils.getAntPropertyName( item.getReference() ); String deploymentPath = warIncludesMap.get(property); item.setAdditionalProperty(PATH_IN_DEPLOYMENT, deploymentPath); item.setAdditionalProperty(AntProjectConstants.DESTINATION_DIRECTORY, warIncludesMap.get(property+"."+AntProjectConstants.DESTINATION_DIRECTORY)); } }
public void initItem(Item item) { item.setAdditionalProperty(ClassPathSupportCallbackImpl.PATH_IN_DEPLOYMENT, ClassPathSupportCallbackImpl.PATH_IN_WAR_NONE); } };
public void setValueAt(Object value, int row, int column) { if (column != 1 || !(value instanceof String)) { return; } ClassPathSupport.Item item = getItem(row); item.setAdditionalProperty(ClassPathSupportCallbackImpl.PATH_IN_DEPLOYMENT, (String)value); fireTableCellUpdated(row, column); }