Compare commits
No commits in common. "0.17" and "0.11" have entirely different histories.
20 changed files with 63 additions and 60 deletions
16
.classpath
16
.classpath
|
@ -2,20 +2,18 @@
|
||||||
<classpath>
|
<classpath>
|
||||||
<classpathentry kind="src" path="src"/>
|
<classpathentry kind="src" path="src"/>
|
||||||
<classpathentry kind="src" path="test"/>
|
<classpathentry kind="src" path="test"/>
|
||||||
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17">
|
|
||||||
<attributes>
|
|
||||||
<attribute name="module" value="true"/>
|
|
||||||
<attribute name="owner.project.facets" value="java"/>
|
|
||||||
</attributes>
|
|
||||||
</classpathentry>
|
|
||||||
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
|
<classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.container"/>
|
||||||
<classpathentry kind="lib" path="lib/Logs/log4j-1.2.17.jar" sourcepath="lib/Logs/log4j-1.2.17-source.zip"/>
|
<classpathentry kind="lib" path="lib/Logs/log4j-1.2.17.jar" sourcepath="lib/Logs/log4j-1.2.17-source.zip"/>
|
||||||
<classpathentry kind="lib" path="lib/UnitTesting/hamcrest-core-1.3.jar" sourcepath="lib/UnitTesting/hamcrest-core-1.3-sources.jar"/>
|
<classpathentry kind="lib" path="lib/UnitTesting/hamcrest-core-1.3.jar" sourcepath="lib/UnitTesting/hamcrest-core-1.3-sources.jar"/>
|
||||||
<classpathentry kind="lib" path="lib/Logs/slf4j-api-1.7.25.jar" sourcepath="lib/Logs/slf4j-api-1.7.25-sources.jar"/>
|
<classpathentry kind="lib" path="lib/Logs/slf4j-api-1.7.25.jar" sourcepath="lib/Logs/slf4j-api-1.7.25-sources.jar"/>
|
||||||
<classpathentry kind="lib" path="lib/Logs/slf4j-log4j12-1.7.25.jar" sourcepath="lib/Logs/slf4j-log4j12-1.7.25-sources.jar"/>
|
<classpathentry kind="lib" path="lib/Logs/slf4j-log4j12-1.7.25.jar" sourcepath="lib/Logs/slf4j-log4j12-1.7.25-sources.jar"/>
|
||||||
<classpathentry kind="lib" path="lib/UnitTesting/junit-4.12.jar" sourcepath="lib/UnitTesting/junit-4.12-sources.jar"/>
|
<classpathentry kind="lib" path="lib/UnitTesting/junit-4.12.jar" sourcepath="lib/UnitTesting/junit-4.12-sources.jar"/>
|
||||||
<classpathentry kind="lib" path="lib/commons-lang3-3.12.0.jar" sourcepath="lib/commons-lang3-3.12.0-sources.jar"/>
|
<classpathentry kind="lib" path="lib/devinsy-strings-0.8.2.jar" sourcepath="lib/devinsy-strings-0.8.2-sources.zip"/>
|
||||||
<classpathentry kind="lib" path="lib/devinsy-strings-0.17.0.jar" sourcepath="lib/devinsy-strings-0.17.0-sources.zip"/>
|
<classpathentry kind="lib" path="lib/devinsy-xml-0.8.2.jar" sourcepath="lib/devinsy-xml-0.8.2-sources.zip"/>
|
||||||
<classpathentry kind="lib" path="lib/devinsy-xml-0.17.0.jar" sourcepath="lib/devinsy-xml-0.17.0-sources.zip"/>
|
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-11">
|
||||||
|
<attributes>
|
||||||
|
<attribute name="owner.project.facets" value="java"/>
|
||||||
|
</attributes>
|
||||||
|
</classpathentry>
|
||||||
<classpathentry kind="output" path="bin"/>
|
<classpathentry kind="output" path="bin"/>
|
||||||
</classpath>
|
</classpath>
|
||||||
|
|
|
@ -10,9 +10,9 @@ org.eclipse.jdt.core.codeComplete.staticFieldSuffixes=
|
||||||
org.eclipse.jdt.core.codeComplete.staticFinalFieldPrefixes=
|
org.eclipse.jdt.core.codeComplete.staticFinalFieldPrefixes=
|
||||||
org.eclipse.jdt.core.codeComplete.staticFinalFieldSuffixes=
|
org.eclipse.jdt.core.codeComplete.staticFinalFieldSuffixes=
|
||||||
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
|
||||||
org.eclipse.jdt.core.compiler.codegen.targetPlatform=17
|
org.eclipse.jdt.core.compiler.codegen.targetPlatform=11
|
||||||
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
|
org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
|
||||||
org.eclipse.jdt.core.compiler.compliance=17
|
org.eclipse.jdt.core.compiler.compliance=11
|
||||||
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
|
org.eclipse.jdt.core.compiler.debug.lineNumber=generate
|
||||||
org.eclipse.jdt.core.compiler.debug.localVariable=generate
|
org.eclipse.jdt.core.compiler.debug.localVariable=generate
|
||||||
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
|
org.eclipse.jdt.core.compiler.debug.sourceFile=generate
|
||||||
|
@ -21,7 +21,7 @@ org.eclipse.jdt.core.compiler.problem.enablePreviewFeatures=disabled
|
||||||
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
|
||||||
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
|
org.eclipse.jdt.core.compiler.problem.reportPreviewFeatures=warning
|
||||||
org.eclipse.jdt.core.compiler.release=enabled
|
org.eclipse.jdt.core.compiler.release=enabled
|
||||||
org.eclipse.jdt.core.compiler.source=17
|
org.eclipse.jdt.core.compiler.source=11
|
||||||
org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
|
org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
|
||||||
org.eclipse.jdt.core.formatter.alignment_for_additive_operator=16
|
org.eclipse.jdt.core.formatter.alignment_for_additive_operator=16
|
||||||
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
|
org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
|
||||||
|
|
|
@ -3,5 +3,5 @@
|
||||||
<fixed facet="jst.java"/>
|
<fixed facet="jst.java"/>
|
||||||
<fixed facet="jst.utility"/>
|
<fixed facet="jst.utility"/>
|
||||||
<installed facet="jst.utility" version="1.0"/>
|
<installed facet="jst.utility" version="1.0"/>
|
||||||
<installed facet="jst.java" version="17"/>
|
<installed facet="jst.java" version="11"/>
|
||||||
</faceted-project>
|
</faceted-project>
|
||||||
|
|
|
@ -11,8 +11,8 @@ This software is released under the GNU LGPL.
|
||||||
|
|
||||||
## Requirements
|
## Requirements
|
||||||
|
|
||||||
- Java 17
|
- Java 11
|
||||||
- Eclipse > 202306.
|
- Eclipse 4.16 (202006).
|
||||||
|
|
||||||
## Context
|
## Context
|
||||||
Several useful Java classes.
|
Several useful Java classes.
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
#Build Number for ANT. Do not edit!
|
#Build Number for ANT. Do not edit!
|
||||||
#Fri Aug 23 06:33:15 CEST 2024
|
#Tue May 02 19:18:06 CEST 2017
|
||||||
build.number=3
|
build.number=0
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
product.name=devinsy-rss
|
product.name=devinsy-rss
|
||||||
product.revision.major=0
|
product.revision.major=0
|
||||||
product.revision.minor=17
|
product.revision.minor=11
|
||||||
|
|
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
lib/devinsy-strings-0.8.2-sources.zip
Normal file
BIN
lib/devinsy-strings-0.8.2-sources.zip
Normal file
Binary file not shown.
BIN
lib/devinsy-strings-0.8.2.jar
Normal file
BIN
lib/devinsy-strings-0.8.2.jar
Normal file
Binary file not shown.
Binary file not shown.
Binary file not shown.
BIN
lib/devinsy-xml-0.8.2.jar
Normal file
BIN
lib/devinsy-xml-0.8.2.jar
Normal file
Binary file not shown.
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2013-2024 Christian Pierre MOMON <christian.momon@devinsy.fr>
|
* Copyright (C) 2013-2014,2017 Christian Pierre MOMON
|
||||||
*
|
*
|
||||||
* This file is part of Devinsy-rss.
|
* This file is part of Devinsy-rss.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
* You should have received a copy of the GNU Lesser General Public License
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
* along with Devinsy-rss. If not, see <http://www.gnu.org/licenses/>
|
* along with Devinsy-rss. If not, see <http://www.gnu.org/licenses/>
|
||||||
*/
|
*/
|
||||||
package fr.devinsy.rss;
|
package fr.devinsy.util.rss;
|
||||||
|
|
||||||
import java.util.HashMap;
|
import java.util.HashMap;
|
||||||
import java.util.Locale;
|
import java.util.Locale;
|
||||||
|
@ -26,6 +26,8 @@ import fr.devinsy.strings.StringList;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Class RSSCache.
|
* The Class RSSCache.
|
||||||
|
*
|
||||||
|
* @author Christian Pierre MOMON (christian.momon@devinsy.fr)
|
||||||
*/
|
*/
|
||||||
public class RSSCache
|
public class RSSCache
|
||||||
{
|
{
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2013-2024 Christian Pierre MOMON
|
* Copyright (C) 2013-2014,2017 Christian Pierre MOMON
|
||||||
*
|
*
|
||||||
* This file is part of Devinsy-rss.
|
* This file is part of Devinsy-rss.
|
||||||
*
|
*
|
||||||
|
@ -16,13 +16,15 @@
|
||||||
* You should have received a copy of the GNU Lesser General Public License
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
* along with Devinsy-rss. If not, see <http://www.gnu.org/licenses/>
|
* along with Devinsy-rss. If not, see <http://www.gnu.org/licenses/>
|
||||||
*/
|
*/
|
||||||
package fr.devinsy.rss;
|
package fr.devinsy.util.rss;
|
||||||
|
|
||||||
import java.time.ZonedDateTime;
|
import java.time.LocalDateTime;
|
||||||
import java.time.format.DateTimeFormatter;
|
import java.time.format.DateTimeFormatter;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Class RSSElement.
|
* The Class RSSElement.
|
||||||
|
*
|
||||||
|
* @author Christian Pierre MOMON (christian.momon@devinsy.fr)
|
||||||
*/
|
*/
|
||||||
public class RSSElement
|
public class RSSElement
|
||||||
{
|
{
|
||||||
|
@ -32,6 +34,29 @@ public class RSSElement
|
||||||
private String value;
|
private String value;
|
||||||
private String[] attributes;
|
private String[] attributes;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Instantiates a new RSS element.
|
||||||
|
*
|
||||||
|
* @param name
|
||||||
|
* the name
|
||||||
|
* @param value
|
||||||
|
* the value
|
||||||
|
*/
|
||||||
|
public RSSElement(final String name, final LocalDateTime value)
|
||||||
|
{
|
||||||
|
setName(name);
|
||||||
|
if (value == null)
|
||||||
|
{
|
||||||
|
this.value = null;
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
|
||||||
|
this.value = value.format(DateTimeFormatter.ofPattern(DATE_PATTERN));
|
||||||
|
}
|
||||||
|
this.attributes = null;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Instantiates a new RSS element.
|
* Instantiates a new RSS element.
|
||||||
*
|
*
|
||||||
|
@ -96,28 +121,6 @@ public class RSSElement
|
||||||
this.attributes = attributes;
|
this.attributes = attributes;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
|
||||||
* Instantiates a new RSS element.
|
|
||||||
*
|
|
||||||
* @param name
|
|
||||||
* the name
|
|
||||||
* @param value
|
|
||||||
* the value
|
|
||||||
*/
|
|
||||||
public RSSElement(final String name, final ZonedDateTime value)
|
|
||||||
{
|
|
||||||
setName(name);
|
|
||||||
if (value == null)
|
|
||||||
{
|
|
||||||
this.value = null;
|
|
||||||
}
|
|
||||||
else
|
|
||||||
{
|
|
||||||
this.value = value.format(DateTimeFormatter.ofPattern(DATE_PATTERN));
|
|
||||||
}
|
|
||||||
this.attributes = null;
|
|
||||||
}
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Gets the attributes.
|
* Gets the attributes.
|
||||||
*
|
*
|
||||||
|
@ -187,4 +190,5 @@ public class RSSElement
|
||||||
{
|
{
|
||||||
this.value = value;
|
this.value = value;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2013-2024 Christian Pierre MOMON
|
* Copyright (C) 2013-2014,2017 Christian Pierre MOMON
|
||||||
*
|
*
|
||||||
* This file is part of Devinsy-rss.
|
* This file is part of Devinsy-rss.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
* You should have received a copy of the GNU Lesser General Public License
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
* along with Devinsy-rss. If not, see <http://www.gnu.org/licenses/>
|
* along with Devinsy-rss. If not, see <http://www.gnu.org/licenses/>
|
||||||
*/
|
*/
|
||||||
package fr.devinsy.rss;
|
package fr.devinsy.util.rss;
|
||||||
|
|
||||||
import java.io.File;
|
import java.io.File;
|
||||||
import java.io.FileNotFoundException;
|
import java.io.FileNotFoundException;
|
||||||
|
@ -29,6 +29,8 @@ import fr.devinsy.xml.XMLWriter;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The Class RSSWriter.
|
* The Class RSSWriter.
|
||||||
|
*
|
||||||
|
* @author Christian Pierre MOMON (christian.momon@devinsy.fr)
|
||||||
*/
|
*/
|
||||||
public class RSSWriter
|
public class RSSWriter
|
||||||
{
|
{
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2017-2024 Christian Pierre MOMON
|
* Copyright (C) 2017 Christian Pierre MOMON
|
||||||
*
|
*
|
||||||
* This file is part of Devinsy-rss.
|
* This file is part of Devinsy-rss.
|
||||||
*
|
*
|
||||||
|
@ -16,10 +16,10 @@
|
||||||
* You should have received a copy of the GNU Lesser General Public License
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
* along with Devinsy-rss. If not, see <http://www.gnu.org/licenses/>
|
* along with Devinsy-rss. If not, see <http://www.gnu.org/licenses/>
|
||||||
*/
|
*/
|
||||||
package fr.devinsy.rss.demo;
|
package fr.devinsy.util.rss.demo;
|
||||||
|
|
||||||
import java.io.IOException;
|
import java.io.IOException;
|
||||||
import java.time.ZonedDateTime;
|
import java.time.LocalDateTime;
|
||||||
import java.util.ArrayList;
|
import java.util.ArrayList;
|
||||||
import java.util.List;
|
import java.util.List;
|
||||||
|
|
||||||
|
@ -29,9 +29,9 @@ import org.apache.log4j.BasicConfigurator;
|
||||||
import org.apache.log4j.Level;
|
import org.apache.log4j.Level;
|
||||||
import org.apache.log4j.Logger;
|
import org.apache.log4j.Logger;
|
||||||
|
|
||||||
import fr.devinsy.rss.RSSElement;
|
|
||||||
import fr.devinsy.rss.RSSWriter;
|
|
||||||
import fr.devinsy.strings.StringListWriter;
|
import fr.devinsy.strings.StringListWriter;
|
||||||
|
import fr.devinsy.util.rss.RSSElement;
|
||||||
|
import fr.devinsy.util.rss.RSSWriter;
|
||||||
import fr.devinsy.xml.XMLBadFormatException;
|
import fr.devinsy.xml.XMLBadFormatException;
|
||||||
import fr.devinsy.xml.XMLTools;
|
import fr.devinsy.xml.XMLTools;
|
||||||
|
|
||||||
|
@ -46,11 +46,8 @@ public class RSSDemo
|
||||||
* @param args
|
* @param args
|
||||||
* the arguments
|
* the arguments
|
||||||
* @throws IOException
|
* @throws IOException
|
||||||
* Signals that an I/O exception has occurred.
|
|
||||||
* @throws XMLStreamException
|
|
||||||
* the XML stream exception
|
|
||||||
* @throws XMLBadFormatException
|
* @throws XMLBadFormatException
|
||||||
* the XML bad format exception
|
* @throws XMLStreamException
|
||||||
*/
|
*/
|
||||||
public static void main(final String[] args) throws IOException, XMLStreamException, XMLBadFormatException
|
public static void main(final String[] args) throws IOException, XMLStreamException, XMLBadFormatException
|
||||||
{
|
{
|
||||||
|
@ -67,7 +64,7 @@ public class RSSDemo
|
||||||
|
|
||||||
//
|
//
|
||||||
List<RSSElement> elements = new ArrayList<RSSElement>();
|
List<RSSElement> elements = new ArrayList<RSSElement>();
|
||||||
ZonedDateTime now = ZonedDateTime.now();
|
LocalDateTime now = LocalDateTime.now();
|
||||||
elements.add(new RSSElement("pubDate", now));
|
elements.add(new RSSElement("pubDate", now));
|
||||||
elements.add(new RSSElement("lastBuildDate", now));
|
elements.add(new RSSElement("lastBuildDate", now));
|
||||||
elements.add(new RSSElement("generator", "Generated by Foo"));
|
elements.add(new RSSElement("generator", "Generated by Foo"));
|
|
@ -1,5 +1,5 @@
|
||||||
/*
|
/*
|
||||||
* Copyright (C) 2014-2024 Christian Pierre MOMON
|
* Copyright (C) 2014,2017 Christian Pierre MOMON
|
||||||
*
|
*
|
||||||
* This file is part of Devinsy-rss.
|
* This file is part of Devinsy-rss.
|
||||||
*
|
*
|
||||||
|
@ -16,7 +16,7 @@
|
||||||
* You should have received a copy of the GNU Lesser General Public License
|
* You should have received a copy of the GNU Lesser General Public License
|
||||||
* along with Devinsy-rss. If not, see <http://www.gnu.org/licenses/>
|
* along with Devinsy-rss. If not, see <http://www.gnu.org/licenses/>
|
||||||
*/
|
*/
|
||||||
package fr.devinsy.rss;
|
package fr.devinsy.util.rss;
|
||||||
|
|
||||||
import org.apache.log4j.BasicConfigurator;
|
import org.apache.log4j.BasicConfigurator;
|
||||||
import org.apache.log4j.Level;
|
import org.apache.log4j.Level;
|
Loading…
Reference in a new issue