Sunday, January 19, 2014

Ant task to invoke a jar file

No comments:
Ant task to invoke a jar file





 
<target name="start-jar">

        <echo message="Starting the jar file "/>

        <java jar="${jar_path}.jar" fork="true">

            <arg value="${args}"/>

            <arg value="${args}"/>

        </java>

</target>

Specify the jar path and pass the arguments.
Happy Coding.

--
Thank you.

Regards,
Kaleeswaran S
Read More

Thursday, October 3, 2013

java.sql.SQLException: No suitable driver found for jdbc:mysql on Hibernate

No comments:
java.sql.SQLException: No suitable driver found for jdbc:mysql



To fix this issue add property

<property name="hibernate.connection.driver_class">com.mysql.jdbc.Driver</property>

in hibernate.cfg.xml file.
Read More

Monday, August 12, 2013

Confluence Publisher Plugin with Jenkins

No comments:
Confluence Publisher Plugin with Jenkins



1) First I installed the confluence publisher plugin in jenkins.

2) Created a account in confluence (on demand service).

3) Get the Server Base Url,




Wiki Url will be like,





4) Configure this Confluence Url in jenkins global configuration



5) Then confgiure which file need to be uploaded in Specific job configuration




6) The specified files will be uploaded to the confluence, the jenkins console will be like,




7) Attached files can be found in confluence in the link



--
Thank you.
Read More

Tuesday, August 6, 2013

Error extracting plugin descriptor: 'Goal: * already exists in the plugin descriptor for prefix: *

1 comment:

Do you face this issue ?

Error extracting plugin descriptor: 'Goal: * already exists in the plugin descriptor for prefix: *
[ERROR] Existing implementation is: *.*Mojo
[ERROR] Conflicting implementation is: *.*Mojo'
[ERROR] -> [Help 1]



Solution :

You may encounter this error when changing a build -> directory on pom.xml

By default build directory will be target directory. If you face this issue, delete the target directory as well as newly specified build directory and install again.

Happy Coding :)
Read More

Monday, June 17, 2013

Jquery combine two objects values into a single object

No comments:
Jquery is having inbuilt function called  extend,
 which can be used to merge two objects values in a single object.
 
 
var data1 = {
   duration: 100
};
    
var data2 = {
   duration: 110
};

console.log("Before Data1 " + JSON.stringify(data1));
console.log("Before Data2 " + JSON.stringify(data2));

/* merge data2 into data1 */
    $.extend(data1, data2);

console.log("After Data1 " + JSON.stringify(data1));


console.log("After Data2 " + JSON.stringify(data2));

OUTPUT : 

  
  
Happy Coding :)
Read More