tag:infinitekind.tenderapp.com,2009-01-14:/discussions/moneydance-development/1908-csv-readin-moneydance-extensionInfinite Kind: Discussion 2017-12-12T13:50:22Ztag:infinitekind.tenderapp.com,2009-01-14:Comment/434099602017-09-11T09:38:17Z2017-09-11T09:38:17ZCSV readin moneydance extension<div><p>Hello!</p>
<p>Thanks for experimenting with this. It sounds like the ANT build file will need to add the jar file with the com.opencsv.* classes into the .mxt file when it is building. The .mxt file is basically just a jar file with all needed libraries with an additional data that is added in the signing process.</p>
<p>Hope this helps!</p>
<p>Sean Reilly<br>
Developer, The Infinite Kind<br>
<a href="http://infinitekind.com">http://infinitekind.com</a></p></div>Sean Reillytag:infinitekind.tenderapp.com,2009-01-14:Comment/434099602017-09-11T09:48:00Z2017-09-11T09:48:05ZCSV readin moneydance extension<div><p>Thanks for the fast response. That sounds reasonable, I tried that by including the jar files in the jar target in the build.xml file by simply adding the path to the libaries:<br>
<br>
But maybe this is done wrong?</p></div>percontag:infinitekind.tenderapp.com,2009-01-14:Comment/434099602017-09-11T09:58:26Z2017-09-11T09:58:26ZCSV readin moneydance extension<div><p>Found the problem. As you said, the libraries were not correctly included into the jar build (.mtx) extension. By using:<br>
<br>
and placing all .jar dependencies in lib folder everything works nicely!<br>
Thanks for the support!</p></div>percontag:infinitekind.tenderapp.com,2009-01-14:Comment/434099602017-09-11T12:57:39Z2017-09-11T12:57:39ZCSV readin moneydance extension<div><p>Hi Percon</p>
<p>If you want an example of this type of Java extension have a look at <a href="https://bitbucket.org/mikerb/moneydance-2015/wiki/Extensions">https://bitbucket.org/mikerb/moneydance-2015/wiki/Extensions</a>. you will find the Securitypriceload and loadsectrans. In the source folder you will find a build.xml which should build it correctly.<br>
In <a href="https://bitbucket.org/mikerb/moneydance-2015/wiki/Development">https://bitbucket.org/mikerb/moneydance-2015/wiki/Development</a> you will find some general notes about developing extensions,<br>
Mike</p></div>Mike Bray (Quote Loader Author)tag:infinitekind.tenderapp.com,2009-01-14:Comment/434099602017-09-11T13:46:54Z2017-09-11T13:46:54ZCSV readin moneydance extension<div><p>Hi Mike,</p>
<p>Have you seen Stan's work on the CSV Importer extension?<br>
<a href="https://github.com/stant/mdcsvimporter2015/releases">https://github.com/stant/mdcsvimporter2015/releases</a></p>
<p>-Kevin N.</p></div>-Kevin N.tag:infinitekind.tenderapp.com,2009-01-14:Comment/434099602017-09-11T17:20:31Z2017-09-11T17:20:32ZCSV readin moneydance extension<div><p>Thanks for the fast help. I managed to read in the csv.</p></div>percontag:infinitekind.tenderapp.com,2009-01-14:Comment/434099602017-09-12T08:07:14Z2017-09-12T08:09:24ZCSV readin moneydance extension<div><p>Hi Kevin</p>
<p>It seems to be similar to mine, I guess we were both just plugging a gap<br>
in MD features. It looks like Stan and I developed our extensions at<br>
about the same time.</p>
<p>Regards<br>
Mike</p></div>Mike Bray (Quote Loader Author)tag:infinitekind.tenderapp.com,2009-01-14:Comment/434099602017-09-12T13:48:58Z2017-09-12T13:48:58ZCSV readin moneydance extension<div><p>Also, it's not source code, but recent releases of MD have support for importing text files built-in, including auto-detection of field types and date formats with 2-pass importing. You can use that API here:<br>
<a href="http://infinitekind.com/dev/apidoc/com/infinitekind/moneydance/model/txtimport/package-summary.html">http://infinitekind.com/dev/apidoc/com/infinitekind/moneydance/mode...</a></p>
<p>Cheers,</p>
<p>Sean Reilly<br>
Developer, The Infinite Kind<br>
<a href="http://infinitekind.com">http://infinitekind.com</a></p></div>Sean Reilly