diff --git a/rome/src/main/java/com/rometools/rome/feed/impl/CopyFromHelper.java b/rome/src/main/java/com/rometools/rome/feed/impl/CopyFromHelper.java index e44e07035..cbb1ffd1e 100644 --- a/rome/src/main/java/com/rometools/rome/feed/impl/CopyFromHelper.java +++ b/rome/src/main/java/com/rometools/rome/feed/impl/CopyFromHelper.java @@ -29,15 +29,10 @@ import java.util.Map.Entry; import java.util.Set; -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; - import com.rometools.rome.feed.CopyFrom; public class CopyFromHelper { - private static final Logger LOG = LoggerFactory.getLogger(CopyFromHelper.class); - private static final Set> BASIC_TYPES = new HashSet>(); private static final Object[] NO_PARAMS = new Object[0]; @@ -93,7 +88,6 @@ public void copy(final Object target, final Object source) { } } catch (final Exception e) { - LOG.error("Error while copying object", e); throw new RuntimeException("Could not do a copyFrom " + e, e); } diff --git a/rome/src/main/resources/META-INF/native-image/romtools/reflect-config.json b/rome/src/main/resources/META-INF/native-image/romtools/reflect-config.json new file mode 100644 index 000000000..0e1832d46 --- /dev/null +++ b/rome/src/main/resources/META-INF/native-image/romtools/reflect-config.json @@ -0,0 +1,148 @@ +[ + { + "name": "com.rometools.rome.feed.module.DCModuleImpl", + "queryAllPublicMethods": true, + "allPublicMethods": true, + "allPublicConstructors":true + }, + { + "name": "com.rometools.rome.feed.synd.impl.ConverterForAtom03", + "allPublicConstructors":true + }, + { + "name": "com.rometools.rome.feed.synd.impl.ConverterForAtom10", + "allPublicConstructors":true + }, + { + "name": "com.rometools.rome.feed.synd.impl.ConverterForRSS090", + "allPublicConstructors":true + }, + { + "name": "com.rometools.rome.feed.synd.impl.ConverterForRSS091Netscape", + "allPublicConstructors":true + }, + { + "name": "com.rometools.rome.feed.synd.impl.ConverterForRSS091Userland", + "allPublicConstructors":true + }, + { + "name": "com.rometools.rome.feed.synd.impl.ConverterForRSS092", + "allPublicConstructors":true + }, + { + "name": "com.rometools.rome.feed.synd.impl.ConverterForRSS093", + "allPublicConstructors":true + }, + { + "name": "com.rometools.rome.feed.synd.impl.ConverterForRSS094", + "allPublicConstructors":true + }, + { + "name": "com.rometools.rome.feed.synd.impl.ConverterForRSS10", + "allPublicConstructors":true + }, + { + "name": "com.rometools.rome.feed.synd.impl.ConverterForRSS20", + "allPublicConstructors":true + }, + { + "name": "com.rometools.rome.io.impl.Atom03Generator", + "allPublicConstructors":true + }, + { + "name": "com.rometools.rome.io.impl.Atom03Parser", + "allPublicConstructors":true + }, + { + "name": "com.rometools.rome.io.impl.Atom10Generator", + "allPublicConstructors":true + }, + { + "name": "com.rometools.rome.io.impl.Atom10Parser", + "allPublicConstructors":true + }, + { + "name": "com.rometools.rome.io.impl.DCModuleGenerator", + "allPublicConstructors":true + }, + { + "name": "com.rometools.rome.io.impl.DCModuleParser", + "allPublicConstructors":true + }, + { + "name": "com.rometools.rome.io.impl.RSS090Generator", + "allPublicConstructors":true + }, + { + "name": "com.rometools.rome.io.impl.RSS090Parser", + "allPublicConstructors":true + }, + { + "name": "com.rometools.rome.io.impl.RSS091NetscapeGenerator", + "allPublicConstructors":true + }, + { + "name": "com.rometools.rome.io.impl.RSS091NetscapeParser", + "allPublicConstructors":true + }, + { + "name": "com.rometools.rome.io.impl.RSS091UserlandGenerator", + "allPublicConstructors":true + }, + { + "name": "com.rometools.rome.io.impl.RSS091UserlandParser", + "allPublicConstructors":true + }, + { + "name": "com.rometools.rome.io.impl.RSS092Generator", + "allPublicConstructors":true + }, + { + "name": "com.rometools.rome.io.impl.RSS092Parser", + "allPublicConstructors":true + }, + { + "name": "com.rometools.rome.io.impl.RSS093Generator", + "allPublicConstructors":true + }, + { + "name": "com.rometools.rome.io.impl.RSS093Parser", + "allPublicConstructors":true + }, + { + "name": "com.rometools.rome.io.impl.RSS094Generator", + "allPublicConstructors":true + }, + { + "name": "com.rometools.rome.io.impl.RSS094Parser", + "allPublicConstructors":true + }, + { + "name": "com.rometools.rome.io.impl.RSS10Generator", + "allPublicConstructors":true + }, + { + "name": "com.rometools.rome.io.impl.RSS10Parser", + "allPublicConstructors":true + }, + { + "name": "com.rometools.rome.io.impl.RSS20Generator", + "allPublicConstructors":true + }, + { + "name": "com.rometools.rome.io.impl.RSS20Parser", + "allPublicConstructors":true + }, + { + "name": "com.rometools.rome.io.impl.RSS20wNSParser", + "allPublicConstructors":true + }, + { + "name": "com.rometools.rome.io.impl.SyModuleGenerator", + "allPublicConstructors":true + }, + { + "name": "com.rometools.rome.io.impl.SyModuleParser", + "allPublicConstructors":true + } +] diff --git a/rome/src/main/resources/META-INF/native-image/romtools/resource-config.json b/rome/src/main/resources/META-INF/native-image/romtools/resource-config.json new file mode 100644 index 000000000..a3b3412ce --- /dev/null +++ b/rome/src/main/resources/META-INF/native-image/romtools/resource-config.json @@ -0,0 +1,15 @@ +{ + "resources": { + "includes": [ + { + "pattern": "\\Qcom/rometools/rome/rome.properties\\E" + }, + { + "pattern": "\\Qrome.properties\\E" + }, + { + "pattern": "\\Qcom/rometools/modules/base/io/tags.properties\\E" + } + ] + } +}