add the parameters to the function as describe for fixing the bug. I've got the following messages :
Erreur lors de l'exécution du script groovygroovy.lang.MissingMethodException: No signature of method: org.txm.metadatas.Metadatas.injectMetadatasInXmlTXM() is applicable for argument types: (java.io.File, java.io.File, java.lang.String, null) values: [C:\Documents and Settings\Charles\TXM\corpora\geneonly\txm\le_monde_1995.xml, C:\Documents and Settings\Charles\TXM\corpora\geneonly\txm\le_monde_1995.xml, text, null]
Possible solutions: injectMetadatasInXmlTXM(java.io.File, java.io.File), injectMetadatasInXml(java.io.File, java.io.File, java.lang.String), injectMetadatasInXml(java.io.File, java.io.File, java.lang.String, java.lang.String)
groovy.lang.MissingMethodException: No signature of method: org.txm.metadatas.Metadatas.injectMetadatasInXmlTXM() is applicable for argument types: (java.io.File, java.io.File, java.lang.String, null) values: [C:\Documents and Settings\Charles\TXM\corpora\geneonly\txm\le_monde_1995.xml, C:\Documents and Settings\Charles\TXM\corpora\geneonly\txm\le_monde_1995.xml, text, null]
Possible solutions: injectMetadatasInXmlTXM(java.io.File, java.io.File), injectMetadatasInXml(java.io.File, java.io.File, java.lang.String), injectMetadatasInXml(java.io.File, java.io.File, java.lang.String, java.lang.String)
at org.codehaus.groovy.runtime.ScriptBytecodeAdapter.unwrap(ScriptBytecodeAdapter.java:54)
at org.codehaus.groovy.runtime.callsite.PogoMetaClassSite.call(PogoMetaClassSite.java:51)
at org.codehaus.groovy.runtime.callsite.CallSiteArray.defaultCall(CallSiteArray.java:40)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:117)
at org.codehaus.groovy.runtime.callsite.AbstractCallSite.call(AbstractCallSite.java:137)
at org.txm.importer.quick.quickLoader.run(quickLoader.groovy:84)
at groovy.util.GroovyScriptEngine.run(GroovyScriptEngine.java:464)
at org.txm.rcpapplication.commands.ExecuteScriptImport$1.run(ExecuteScriptImport.java:159)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Hello,
There is a mistake in the command line of your modified script, you must replace "injectMetadatasInXmlTXM" by "injectMetadatasInXml"
Matthieu
Thank you, this solves the execution fail.
But if the metadata.csv.xml seems to get the datas from metadata.csv file without errors, we can find only one field that corresponds to the first one "id", others are empty ot contains one element when trying to use them for partitionning.