Skip to content

Commit

Permalink
Add support for GraalVM native images (#636)
Browse files Browse the repository at this point in the history
Fixes #599
  • Loading branch information
artembilan authored Mar 11, 2023
1 parent 01eb02b commit f84d9c4
Show file tree
Hide file tree
Showing 3 changed files with 163 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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<Class<?>> BASIC_TYPES = new HashSet<Class<?>>();
private static final Object[] NO_PARAMS = new Object[0];

Expand Down Expand Up @@ -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);
}

Expand Down
Original file line number Diff line number Diff line change
@@ -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
}
]
Original file line number Diff line number Diff line change
@@ -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"
}
]
}
}

0 comments on commit f84d9c4

Please sign in to comment.