nk Eclipse is creating a shaded jar, means a jar which contains all
> external jars.
>
> So you would have to download these jars and include their content in your
> final archive.
>
> You could use for getting their content
>
>
>
>
>
>
>
KCBSEvents
META-INF
It is obvious now what the problem is. I just need to know how to get
ant to include those same directories.
On 2/21/2019 10:18 AM, Dennis Putnam wrote:
> I found an article on adding Maven dependencies to my ant script.
> While I'm getting a successful build but the
>
>
>
>
>
> jarfile="${build.dir}/${ant.project.name}.jar">
>
>
>
>
>
>
>
>
resulting jar fails as well. It seems to me that the problem is not ant
specific but something in the app build per se.
On 2/21/2019 10:18 AM, Dennis Putnam wrote:
> I found an article on adding Maven dependencies to my ant script.
> While I'm getting a successful build but the same exception
I found an article on adding Maven dependencies to my ant script. While
I'm getting a successful build but the same exception when I run the
jar, I hope this is getting me closer. At least the pom.xml is in the
build. I am wondering if the added *fileset* is right and working. Here
is my latest:
use references:
>
> …
>
>
>
>
>
>
>
> You mave have a look at
> http://ant.apache.org/manual/tutorial-HelloWorldWithAnt.html
>
>
>
>
>
> Jan
>
>
>
>
>
> Von: Dennis Putnam [mailto:d...@bellsouth.net]
> Gesendet: Diensta
e while running the application. As long as you setup
> your classpath to contain all these necessary jar files, you should no
> longer see those exceptions.
>
> -Jaikiran
>
> On 18/02/19 8:15 PM, Dennis Putnam wrote:
>> Hi Matt and Jan,
>>
>> Thanks to both of yo
Hi Matt and Jan,
Thanks to both of you as I am closer but I think I am still missing a
piece. I am now getting a successful build but the resulting jar is not
finding the classes in the external jars. When I run the jar I get this
exception:
Exception in thread "main" java.lang.NoClassDefFoun
default
>> value for the classpath attribute. If no classpath or classpathref is
>> specified then the compiler is not passed any classpath information.
>>
>> I would start by locating the folder where your third-party
>> dependencies are and create a element containing
ndencies
> are and create a element containing them like this:
>
>
>
>
>
> Once you have a path defined you can pass the classpath to the task
> using a refid like this:
>
> classpathref="compile-classpath"/>
>
> Try that and see how it goes
least point me in the right direction?
On 2/14/2019 9:42 AM, Dennis Putnam wrote:
> Hi Jaikiran,
>
> Thanks for the reply. I thought the classpath parameter defaulted to
> "basedir"/.classpath. In any case I made the following change:
>
> classpath=".classpath"
commons-codec
1.10
commons-logging
commons-logging
1.2
Presumably the maven libraries are found from the zipfilesets in the ant
script.
On 2/14/2019 8:55 AM, Jaikiran Pai wrote:
>
I had a working ant script until I made a number of source changes to my
Java project via Eclipse and egit. I obviously somehow inadvertently
changed something, somewhere, that is causing javac to not find
libraries (perhaps pushed something via git that is not part of the
source). There are some M
> On 12/7/2018 12:10 AM, Jaikiran Pai wrote:
>> Hello Dennis,
>>
>>
>> On 07/12/18 1:15 AM, Dennis Putnam wrote:
>>>
>>>
>> I don't see this fileset being used in the rest of the target(s) which
>> generate your jar file.
On 12/7/2018 3:14 PM, Dennis Putnam wrote:
> On 12/7/2018 12:10 AM, Jaikiran Pai wrote:
>> Hello Dennis,
>>
>>
>> On 07/12/18 1:15 AM, Dennis Putnam wrote:
>>>
>>>
>> I don't see this fileset being used in the rest of the target(s)
On 12/7/2018 12:10 AM, Jaikiran Pai wrote:
> Hello Dennis,
>
>
> On 07/12/18 1:15 AM, Dennis Putnam wrote:
>>
>>
> I don't see this fileset being used in the rest of the target(s) which
> generate your jar file. Maybe you missed using it to copy over the
I have a working ant build script but I changed my application to use
some maven dependencies. I am trying to include those dependencies into
that build script. I found this article for doing that:
https://stackoverflow.com/questions/7335819/ant-eclipse-complains-about-artifactdependencies
I k
17 matches
Mail list logo