Stats

Wednesday 6 June 2018

Building Java Project ant using build.xml

Building Java Project ant using build.xml


Create a build.xml for your project
Sample build.xml




****************************************************************************************
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!-- WARNING: Eclipse auto-generated file.
              Any modifications will be overwritten.
              To include a user specific buildfile here, simply create one in the same
              directory with the processing instruction <?eclipse.ant.import?>
              as the first entry and export the buildfile again. -->
<project basedir="." name="TS">
 <property environment="env" />
 <property name="debuglevel" value="source,lines,vars" />
 <property name="target" value="1.6" />
 <property name="source" value="1.6" />
 <path id="TS.classpath">
         <pathelement location="bin" />
  <!-- other external jar entries -->
 </path>
 <path id="run.TSExecutor.classpath">
         <path refid="TS.classpath" />
 </path>
 <target name="showprops"> </target>
 <target name="init"> </target>

 <target name="build-jar">
            <jar destfile="tsRunner.jar" basedir="bin">
            </jar>
 </target>

</project>
****************************************************************************************





Follow path Window -> Show View -> Other -> Search ant and select ant
Drag and drop build.xml by choosing from Project Explorer into Ant View selected above
Right Click on build.xml in ant editor and select run configurations
Set target as one of allowed targets (e.g. here init or showprops as in build.xml), build.xml location and jre , classpath in run configurations
Click run for running the specified targets

Monday 21 May 2018

My JavaScript Work :


Generating Custom Java class using JavaScript with Underscore Template and JSON Data :
https://codepen.io/iamsagarbha/post/testpost
Jquery Tab Widget Trial
https://liveweave.com/M8unj6

Click on "Book" in Menu Items in second occurrence
https://liveweave.com/Qm8g1Y

Thursday 8 March 2018

Adding Google Sign In to Your Web Application Code

<script src="https://apis.google.com/js/platform.js" async defer></script>

<meta name="google-signin-client_id" content="YOUR_CLIENT_ID.apps.googleusercontent.com">

<div class="g-signin2" data-onsuccess="onSignIn"></div>

function onSignIn(googleUser) {
  var profile = googleUser.getBasicProfile();
  console.log('ID: ' + profile.getId()); // Do not send to your backend! Use an ID token instead.
  console.log('Name: ' + profile.getName());
  console.log('Image URL: ' + profile.getImageUrl());
  console.log('Email: ' + profile.getEmail()); // This is null if the 'email' scope is not present.
}