interconnect/interconnect-maven-plugin/src/main/java/de/taimos/dvalin/interconnect/model/maven/model/AbstractInterconnectModel.java
/**
     * @return whether the file should me removed or not
     */
@return whether the file should me removed or not
@return whether the file should me removed or not
public boolean generateFile() {
        String dateString = this.definition.getRemovalDate();
        if (dateString == null || dateString.isEmpty()) {
            return true;
        }
        SimpleDateFormat format = new SimpleDateFormat("yyyy/MM/dd");
        Date removalDate;
        try {
            removalDate = format.parse(dateString);
        } catch (ParseException e) {
            throw new IllegalArgumentException("Failed to parse the removal date - should be yyyy/MM/dd, is " + dateString);
        }
        return removalDate.compareTo(Calendar.getInstance().getTime()) > 0;
    }
public boolean generateFile ( ) { String dateString = this . definition . getRemovalDate ( ) ; if ( dateString == null || dateString . isEmpty ( ) ) { return true ; } SimpleDateFormat format = new SimpleDateFormat ( "yyyy/MM/dd" ) ; Date removalDate ; try { removalDate = format . parse ( dateString ) ; } catch ( ParseException e ) { throw new IllegalArgumentException ( "Failed to parse the removal date - should be yyyy/MM/dd, is " + dateString ) ; } return removalDate . compareTo ( Calendar . getInstance ( ) . getTime ( ) ) > 0 ; }
@return whether the file should me removed or not
@return whether the file should me removed or not