This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
System.getProperties().list(System.out); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@SuppressWarnings("PMD.ReplaceHashtableWithMap") | |
public Hashtable getDetails() { | |
// code goes here | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// HTTP | |
System.setProperty("http.proxyHost", "proxyHost.com"); | |
System.setProperty("http.proxyPort", "80"); | |
//HTTPS | |
System.setProperty("https.proxyHost", "proxyHost.com"); | |
System.setProperty("https.proxyPort", "80"); |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" | |
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> | |
<modelVersion>4.0.0</modelVersion> | |
<groupId>com.sachinhandiekar.example</groupId> | |
<artifactId>SimpleWS</artifactId> | |
<version>0.0.1-SNAPSHOT</version> | |
<packaging>bundle</packaging> | |
<properties> | |
<cxf.version>2.6.0.redhat-60024</cxf.version> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<blueprint xmlns="http://www.osgi.org/xmlns/blueprint/v1.0.0" | |
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:jaxws="http://cxf.apache.org/blueprint/jaxws" | |
xmlns:jpa="http://aries.apache.org/xmlns/jpa/v1.0.0" xmlns:tx="http://aries.apache.org/xmlns/transactions/v1.0.0"> | |
<jaxws:endpoint id="HelloWorldServiceEndpoint" | |
implementor="#helloWorldService" address="/HelloWorldService" /> | |
<bean id="helloWorldService" | |
class="com.sachinhandiekar.example.webservice.HelloWorldService" /> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.sachinhandiekar.example.webservice; | |
import javax.jws.WebService; | |
@WebService(endpointInterface = "com.sachinhandiekar.example.webservice.HelloWorld") | |
public class HelloWorldService implements HelloWorld { | |
public String sayHello(String name) throws Exception { | |
return "Hello " + name; | |
} |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <stdio.h> | |
int main(void) { | |
int number, temp; | |
int reverseNumber = 0; | |
printf("Enter your number : \n"); | |
scanf("%i", &number); | |
while (number != 0) { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
cov-configure --java | |
cov-build --dir ./cov-int mvn -Dmaven.compiler.fork=true \ | |
-Dmaven.compiler.forceJavaCompilerUse=true \ | |
-Dmaven.test.skip=true \ | |
-DskipTests \ | |
clean verify |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rem Stackoverflow Ref : http://stackoverflow.com/questions/1502913/how-to-delete-all-files-and-folders-in-a-folder-by-cmd-call | |
rem echo off | |
ECHO Change to C drive | |
cd /d C:\ | |
ECHO Setting target directory | |
set targetDir=c:\logs | |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
c:/Eclipse/eclipse.exe -data /path/to/workspace |