The Altair Community is migrating to a new platform to provide a better experience for you. In preparation for the migration, the Altair Community is on read-only mode from October 28 - November 6, 2024. Technical support via cases will continue to work as is. For any urgent requests from Students/Faculty members, please submit the form linked here
Plugin writing
Hi all,
I purchased the white paper:
http://rapid-i.com/component/page,shop.product_details/flypage,flypage.tpl/product_id,52/category_id,5/option,com_virtuemart/Itemid,180/vmcchk,1/
At the first glance it looks very helpful. However I got stuck at the very beginning. In the first section the document explains how to start RapidMiner from ecplise by downloading everthing via a checkout (SVN) first. This is what I did and it worked very well.
My problem now is that I keep getting a terrible message
Buildfile: \Workspace\RapidMiner_Vega\build_extension.xml
[taskdef] Could not load definitions from resource net/sf/antcontrib/antlib.xml. It could not be found.
BUILD SUCCESSFUL
Total time: 297 milliseconds
while executing the ant-file from the RapidMiner_Extension_Tutorial-Project.
Does anybody now what that message from above means and how to fix my problem?
Thank you.
I purchased the white paper:
http://rapid-i.com/component/page,shop.product_details/flypage,flypage.tpl/product_id,52/category_id,5/option,com_virtuemart/Itemid,180/vmcchk,1/
At the first glance it looks very helpful. However I got stuck at the very beginning. In the first section the document explains how to start RapidMiner from ecplise by downloading everthing via a checkout (SVN) first. This is what I did and it worked very well.
My problem now is that I keep getting a terrible message
Buildfile: \Workspace\RapidMiner_Vega\build_extension.xml
[taskdef] Could not load definitions from resource net/sf/antcontrib/antlib.xml. It could not be found.
BUILD SUCCESSFUL
Total time: 297 milliseconds
while executing the ant-file from the RapidMiner_Extension_Tutorial-Project.
Does anybody now what that message from above means and how to fix my problem?
Thank you.
Tagged:
0
Answers
It seems we are sailing the same uncharted waters, so you have my sympathies; well done on spotting the missing Trinity, more than I did, but here's the good news - I've managed to get the whole contraption working, so what is missing can't be that important ( perhaps that's why it isn't there ;D ).
By "working" I mean that I can run enough of a modified copy of the template build file to produce a jar in lib/plugins, and that I can build Vega in order to see my magnificent rubbish working.
Sadly you are in a more annoying place where the ants are non-constructive, if I google your error I can see that there are several possible causes for this. One suggestion would be to change the properties of the plugin build.xml to add diagnostics etc., here is a link to the various options.
http://ant.apache.org/manual/running.html
Another thing to bear in mind is that lining up your plugin directories correctly with your Vega directories is important - until I put them under the same parent I couldn't build either ( I'd love to be able say what the error messages were, but that is all lost in the fog ).
Good luck! No doubt we shall bump into similar uncharted rocks, so posting them up is good.
Pip pip
You have to:
1) download ant-contrib-1.0b3-bin.tar.gz and place ant-contrib-1.0b3.jar e.g. to "RapidMiner_Vega/lib/ant/" folder.
2) In each occurence of taskdef replace it by:
I excuse any inconvenience arisen from this issue, but after the white paper has been written, we have made some changes to the build process in order to make releases and updates more simpler for us. That's why I had to add some libraries to ant. In fact they are only needed to deploy updates to our Updateserver and so missing libraries could be simply ignored. I changed the onerror property of the taskdef tags to "report", so that it should not bother you anymore.
Greetings,
Sebastian
I have checked out the latest version of Vega via SVN and organized my eclipse ws just as described.
Still, I get
Buildfile: Y:\eclipse\Rapidminer5_dev\RapidMiner_Extension_Template\build.xml
[taskdef] Could not load definitions from resource net/sf/antcontrib/antlib.xml. It could not be found.
BUILD SUCCESSFUL
Total time: 344 milliseconds
Do you have any idea how to fix this?
Try the second "Run as -> 2. Ant build" option; you'll see a list of the build commands. I got mine running by selecting all the options up to and including "install", and deselecting those after "install".
Hope that works for you too ;D
at startup: I used exactly the code on page 35 (whithout line numbers of course ) and the Files from the Extension_Tutorial in the exact same folders.
Is there any possibility, to get a more specific warning, like which entry is corrupt?
There seemed to be a problem with the initialization class. Whith this knowledge, I can decipher the error message.
Greetings from Bonn
Pascal
it looks like you have solved your problem. However, you should not have to generate the manifest manually and compile and package everything yourself. That's what we have ant for :-) The weird thing is the error message about executing "javac.exe". Can you build other projects using ant? Is JAVA_HOME and everything configured correctly?
Cheers,
SImon
In the future, could we put in the required .jar files in the lib directory of RapidMiner -- don't assume that the user has ant installed on their systems? I know it would make the downloads slightly bigger, but I think a lot of the people who use RapidMiner just want to solve a problem and might not be experienced programmers. RapidMiner is a great project and I think it's success is directly linked to its capability. Encourage users to extend that capability by allowing them to develop plug-ins as easily as possible. A few extra MBs of download is definitely worth the 1+ hours spent troubleshooting the build setup.
You are right. We will take care of this issue in the next release. Probably we will not include the jar files since these are only for uploading to sourceforge etc. which is irrelevant for downloaders. But we will fix the build file so everything still works when the jar is missing. I hope you did not waste too much of your time :-)
Cheers,
Simon