Yanki Twizzy
Yanki Twizzy

Reputation: 8001

Setting up ActiveJDBC for an Eclipse project that does not use Maven

I read a few things about activejdbc and I liked it. I tried adding it to an Eclipse project that I already have and realised that most of the references on how to add it to projects use Maven. I am not using Maven for my project and I am not ready to use Maven since it doesn't exactly suit what I am trying to do. Could someone please tell me how else (step by step guide) I could get it running on my project.

I am writing a Swing application using MVC architecture.

Upvotes: 0

Views: 502

Answers (2)

Hongyi Li
Hongyi Li

Reputation: 1069

If you're using gradle, you can create a task like this:

task instrument(dependsOn: 'build', type: JavaExec) {
    main = 'org.javalite.instrumentation.Main'
    classpath = sourceSets.main.runtimeClasspath
    classpath += project(':any-other-project-paths-you-want-to-include').sourceSets.main.runtimeClasspath
    jvmArgs '-DoutputDirectory=/Users/ned_stark/voldemort/whitewalkers/legolas/root-dir/build/classes/main/'
}

The activejdbc-graddle github example didn't work for me, so I had to do this instead.

Upvotes: 0

ipolevoy
ipolevoy

Reputation: 5518

you can look at this Ant example: https://github.com/javalite/ant-example If you are not using Ant, you can look at the standalone example here: https://github.com/javalite/standalone-example. It does not use anything at all.

hope this helps

Upvotes: 1

Related Questions