Maven course content

swatinikam2009 created the topic: Maven course content
Hi Team,

I am looking for Maven PPT. I need it for reference.

Regards Swati Nikam

swatinikam2009 replied the topic: Maven course content
I got PPT for the same.

rajeshkumar replied the topic: Maven course content
This is the place from where you can download all the PPT for maven.
www.devopsschool.com/tutorial/maven/
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

Maven

swatinikam2009 created the topic: Maven
Hi ,

I am trying to run java code. I have set the environment correctly. Also created MAVEN_HOME variable and added it to path varibale.
But still i am getting error message saying “count not find or load main class App”.

What to do?

Tagged :

Maven

swatinikam2009 created the topic: Maven
Hi ,

I am trying to run java code. I have set the environment correctly. Also created MAVEN_HOME variable and added it to path varibale.
But still i am getting error message saying “count not find or load main class App”.

What to do?

rajeshkumar replied the topic: Maven
Check with your java file main method or maven directory structure.

Example
github.com/scmgalaxy/jacoco-maven-unittestv2/
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

swatinikam2009 replied the topic: Maven
Hi Rajesh,

I have done all the settings proprly but still getting the error.

So I tried to run code by followinf cmd.

c:\MavenDemos\MyPro > java -cp target/classes com.acc.App

And then it is showing me output.

Can you please tell me. Where i am doing wrong?

swatinikam2009 replied the topic: Maven
Contiued with the above query.

I have done one change. And then it is working fine . No need to use c:\MavenDemos\MyPro>java -cp target/classes com.acc.App

I have removed CLASSPATH variable from user variable in Env. variables.

Then it is working fine. so now i just type c:\MavenDemos\MyPro\target\classes>java com.acc.App

Tagged :

Ant cpptask with ivy

rajeshkumar created the topic: ant cpptask with ivy
Questions:
A company I am working for, has some c binaries build with ant using cpptask. They use ivy to retrieve shared c libraries every time we start a build which wastes a significant amount of time comparing the revisions and downloading, when then only need to be download if the header files have changed. I have added a target which sets a var, which causes the build to skip over the ivy steps but I’d like a better solution. I see that cpptask creates a file history.xml and only rebuilds to binary if any of the sources have change. I’d like to know if there is way to independently test if the binary needs to build, and it does, I’d like it fire off the ivy targets. I’d also like for a variable to be set if the binary was rebuilt so that I can conditionally start an rpm generation task

Answer:







Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

Apache Ant: Copy Task full reference

rajeshkumar created the topic: Apache Ant: Copy Task full reference
This copies all files in directories called images that are located in the directory tree defined by ${src} to the destination directory defined by ${dist}, but excludes all *.gif files from the copy.



The same as the example above, but expressed using nested elements.






Copy a single file

Copy a single file to a directory

Copy a directory to another directory



Copy a set of files to a directory







Copy a set of files to a directory, replacing @TITLE@ with Foo Bar in all files.






Collect all items from the current CLASSPATH setting into a destination directory, flattening the directory structure.

Copies some resources to a given directory.





Copies the two newest resources into a destination directory.












copy a set of files






Ant copy task examples








fileset dir="${config.deploy.dir}">



Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

How to put new line in apache ant message

rajeshkumar created the topic: How to put new line in apache ant message
How to put new line in Apache Ant echo task and mail task:

Answer:
line.separator is Java System Properties which can be used for this purpose.
Found the solution (tried with Ant 1.7.0):

1. You might wrap the message-texts within the XML file.
2. If you put ${line.separator} in front of the line every space before that line separator will be trimmed away.

Example Program:









Note:
If new properties get added (it happens), expect them to appear under the “ant.” and “org.apache.tools.ant” prefixes, unless the developers have a very good reason to use another prefix. Accordingly, please avoid using properties that begin with these prefixes. This protects you from future Ant releases breaking your build file.
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

Ant+Unable to create directory as a file already

rajeshkumar created the topic: Ant+Unable to create directory as a file already
Hi,

I have one file called djir.ear and I am trying to create a folder with the same name “jir.ear” same location using ant script.
but i get error message saying that
Unable to create directory as a file alr
eady exists with that name

Can you suggest me any solution for this? as i build is failing and mkdir do not support failonerror propertry 🙁
Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

Tagged :

The type doesn’t support the nested “resources”

scmuser created the topic: The type doesn’t support the nested “resources”
Hi,
I getting below error when i execute following command

Error: The type doesn’t support the nested “resources” element.





any help???

Tagged :

Help in copy files from list using ant

scmuser created the topic: Help in copy files from list using ant
Help in copy files from list using ant

Hi,

I have one file called list.txt where i have mentioned all the files which need to be copied from specific directry.

can you please help me with the right copy task syntax which read the files name from list.txt and copy to destination directory???

tpatil replied the topic: Re:Help in copy files from list using ant
You can “for” loop in build to achieve this
Build.xml:-



Copying File @{val}


Build.properties:-
copy.files=${src_dir1}/build/build.xml,\
${src_dir2}/build/build.xml

rajeshkumar replied the topic: Re:Help in copy files from list using ant
I would recommend following command for same…






Regards,
Rajesh Kumar
Twitt me @ twitter.com/RajeshKumarIn

scmuser replied the topic: Re:Help in copy files from list using ant

amitanand123 replied the topic: Re:Help in copy files from list using ant


Tagged :

Ant Scripting Issue

ant-qa created the topic: Ant Scripting Issue
1) I have many ant build files ( .xml files / test scripts) in folder : bin/execute

2) I have another testsuit.xml file (ant build file) that works as a test suit. All the test cases in folder : bin/execute are executed in the order they appear in testsuit.xml

3) I want to write code maybe another ant test (.xml file) to make sure that all the test cases are added (executed) in the test suit.

4) Test cases in the testsuit.xml can be identified by :

Any thoughts will be extremely appreciated

Thanks

Tagged :