Skip to content

Commit c481a43

Browse files
committed
Initial Code Check-in
This code required 3 third parties libraries to compile: axis2-1.6.2, httpcomponents-client-4.2.5, httpcomponents-core-4.3-bin. The stubs are generated as an example but can be regenerated via the ant file: build.xml.
0 parents  commit c481a43

24 files changed

Lines changed: 365504 additions & 0 deletions

.gitattributes

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto
3+
4+
# Custom for Visual Studio
5+
*.cs diff=csharp
6+
*.sln merge=union
7+
*.csproj merge=union
8+
*.vbproj merge=union
9+
*.fsproj merge=union
10+
*.dbproj merge=union
11+
12+
# Standard to msysgit
13+
*.doc diff=astextplain
14+
*.DOC diff=astextplain
15+
*.docx diff=astextplain
16+
*.DOCX diff=astextplain
17+
*.dot diff=astextplain
18+
*.DOT diff=astextplain
19+
*.pdf diff=astextplain
20+
*.PDF diff=astextplain
21+
*.rtf diff=astextplain
22+
*.RTF diff=astextplain

.gitignore

Lines changed: 217 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,217 @@
1+
#################
2+
## Eclipse
3+
#################
4+
5+
*.pydevproject
6+
.project
7+
.metadata
8+
resources/
9+
bin/
10+
tmp/
11+
lib/
12+
*.tmp
13+
*.bak
14+
*.swp
15+
*~.nib
16+
local.properties
17+
.classpath
18+
.settings/
19+
.loadpath
20+
21+
# External tool builders
22+
.externalToolBuilders/
23+
24+
# Locally stored "Eclipse launch configurations"
25+
*.launch
26+
27+
# CDT-specific
28+
.cproject
29+
30+
# PDT-specific
31+
.buildpath
32+
33+
34+
#################
35+
## Visual Studio
36+
#################
37+
38+
## Ignore Visual Studio temporary files, build results, and
39+
## files generated by popular Visual Studio add-ons.
40+
41+
# User-specific files
42+
*.suo
43+
*.user
44+
*.sln.docstates
45+
46+
# Build results
47+
48+
[Dd]ebug/
49+
[Rr]elease/
50+
x64/
51+
build/
52+
[Bb]in/
53+
[Oo]bj/
54+
55+
# MSTest test Results
56+
[Tt]est[Rr]esult*/
57+
[Bb]uild[Ll]og.*
58+
59+
*_i.c
60+
*_p.c
61+
*.ilk
62+
*.meta
63+
*.obj
64+
*.pch
65+
*.pdb
66+
*.pgc
67+
*.pgd
68+
*.rsp
69+
*.sbr
70+
*.tlb
71+
*.tli
72+
*.tlh
73+
*.tmp
74+
*.tmp_proj
75+
*.log
76+
*.vspscc
77+
*.vssscc
78+
.builds
79+
*.pidb
80+
*.log
81+
*.scc
82+
83+
# Visual C++ cache files
84+
ipch/
85+
*.aps
86+
*.ncb
87+
*.opensdf
88+
*.sdf
89+
*.cachefile
90+
91+
# Visual Studio profiler
92+
*.psess
93+
*.vsp
94+
*.vspx
95+
96+
# Guidance Automation Toolkit
97+
*.gpState
98+
99+
# ReSharper is a .NET coding add-in
100+
_ReSharper*/
101+
*.[Rr]e[Ss]harper
102+
103+
# TeamCity is a build add-in
104+
_TeamCity*
105+
106+
# DotCover is a Code Coverage Tool
107+
*.dotCover
108+
109+
# NCrunch
110+
*.ncrunch*
111+
.*crunch*.local.xml
112+
113+
# Installshield output folder
114+
[Ee]xpress/
115+
116+
# DocProject is a documentation generator add-in
117+
DocProject/buildhelp/
118+
DocProject/Help/*.HxT
119+
DocProject/Help/*.HxC
120+
DocProject/Help/*.hhc
121+
DocProject/Help/*.hhk
122+
DocProject/Help/*.hhp
123+
DocProject/Help/Html2
124+
DocProject/Help/html
125+
126+
# Click-Once directory
127+
publish/
128+
129+
# Publish Web Output
130+
*.Publish.xml
131+
*.pubxml
132+
133+
# NuGet Packages Directory
134+
## TODO: If you have NuGet Package Restore enabled, uncomment the next line
135+
#packages/
136+
137+
# Windows Azure Build Output
138+
csx
139+
*.build.csdef
140+
141+
# Windows Store app package directory
142+
AppPackages/
143+
144+
# Others
145+
sql/
146+
*.Cache
147+
ClientBin/
148+
[Ss]tyle[Cc]op.*
149+
~$*
150+
*~
151+
*.dbmdl
152+
*.[Pp]ublish.xml
153+
*.pfx
154+
*.publishsettings
155+
156+
# RIA/Silverlight projects
157+
Generated_Code/
158+
159+
# Backup & report files from converting an old project file to a newer
160+
# Visual Studio version. Backup files are not needed, because we have git ;-)
161+
_UpgradeReport_Files/
162+
Backup*/
163+
UpgradeLog*.XML
164+
UpgradeLog*.htm
165+
166+
# SQL Server files
167+
App_Data/*.mdf
168+
App_Data/*.ldf
169+
170+
#############
171+
## Windows detritus
172+
#############
173+
174+
# Windows image file caches
175+
Thumbs.db
176+
ehthumbs.db
177+
178+
# Folder config file
179+
Desktop.ini
180+
181+
# Recycle Bin used on file shares
182+
$RECYCLE.BIN/
183+
184+
# Mac crap
185+
.DS_Store
186+
187+
188+
#############
189+
## Python
190+
#############
191+
192+
*.py[co]
193+
194+
# Packages
195+
*.egg
196+
*.egg-info
197+
dist/
198+
build/
199+
eggs/
200+
parts/
201+
var/
202+
sdist/
203+
develop-eggs/
204+
.installed.cfg
205+
206+
# Installer logs
207+
pip-log.txt
208+
209+
# Unit test / coverage reports
210+
.coverage
211+
.tox
212+
213+
#Translations
214+
*.mo
215+
216+
#Mr Developer
217+
.mr.developer.cfg

build.xml

Lines changed: 104 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,104 @@
1+
<?xml version="1.0"?>
2+
<project name="MSDCJavaConnect" default="main" basedir=".">
3+
<!-- **** Set all Folders location *** -->
4+
<!-- The value of a property is accessed via ${} -->
5+
<!-- Project Source Folders -->
6+
<property name="src.dir" location="src" />
7+
<property name="discovery-stubs.dir" location="${src.dir}/com/cloudliner/integration/msdc11/stubs.discovery" />
8+
<property name="organization-stubs.dir" location="${src.dir}/com/cloudliner/integration/msdc11/stubs.organization" />
9+
<property name="lib.dir" location="lib" />
10+
<property name="resource.dir" location="resources" />
11+
<!-- Project Build Folders -->
12+
<property name="build.dir" location="build" />
13+
<property name="bin.dir" location="${build.dir}/bin" />
14+
<property name="docs.dir" location="${build.dir}/docs" />
15+
<property name="dist.dir" location="${build.dir}/dist" />
16+
<!-- Temp Folders -->
17+
<property name="temp.dir" location="temp" />
18+
19+
<!-- *** Create Project Classpath Container which can be used in the ant tasks *** -->
20+
<path id="build.classpath">
21+
<fileset dir="${lib.dir}">
22+
<include name="**/*.jar" />
23+
</fileset>
24+
</path>
25+
26+
<!-- *** Clean Directories *** -->
27+
<!-- Deletes the existing Build and Distribution Directories -->
28+
<target name="clean-build-dir">
29+
<delete dir="${build.dir}" />
30+
</target>
31+
<!-- Deletes the existing Stubs Directories -->
32+
<target name="clean-stubs">
33+
<delete dir="${discovery-stubs.dir}" />
34+
<delete dir="${organization-stubs.dir}" />
35+
</target>
36+
<target name="clean-temp">
37+
<delete dir="${temp.dir}" />
38+
</target>
39+
40+
<!-- *** Create Directories *** -->
41+
<!-- Create the Build and Distribution Directories -->
42+
<target name="make-build-dir">
43+
<mkdir dir="${build.dir}" />
44+
<mkdir dir="${bin.dir}" />
45+
<mkdir dir="${docs.dir}" />
46+
<mkdir dir="${dist.dir}" />
47+
</target>
48+
49+
<!-- *** Compiles the Java Code *** -->
50+
<target name="compile" depends="clean-build-dir, make-build-dir">
51+
<javac source="1.6" srcdir="${src.dir}" destdir="${bin.dir}" classpathref="build.classpath">
52+
<compilerarg value="-Xlint:unchecked"/>
53+
</javac>
54+
</target>
55+
56+
<!-- *** Creates Javadoc *** -->
57+
<target name="docs" depends="compile">
58+
<javadoc packagenames="src" sourcepath="${src.dir}" destdir="${docs.dir}">
59+
<!-- Define which files / directory should get included, we include all -->
60+
<fileset dir="${src.dir}">
61+
<include name="**" />
62+
</fileset>
63+
</javadoc>
64+
</target>
65+
66+
<!-- *** Creates the deployable JAR file ***-->
67+
<target name="jar" depends="compile">
68+
<jar destfile="${dist.dir}\MSDCJavaConnect.jar" basedir="${build.dir}">
69+
<manifest>
70+
<attribute name="Main-Class" value="TestDynamicsCRM2011JavaConnect.main" />
71+
</manifest>
72+
</jar>
73+
</target>
74+
75+
<!-- *** Integration Stubs generation *** -->
76+
<!-- reference: http://axis.apache.org/axis2/java/core/tools/CodegenToolReference.html -->
77+
<!-- MSDC Discovery Stub generation -->
78+
<target name="gen-discovery-stub">
79+
<taskdef name="axis2-wsdl2java" classname="org.apache.axis2.tool.ant.AntCodegenTask" classpathref="build.classpath" />
80+
<axis2-wsdl2java wsdlfilename="https://yourCRMOrg.crm.dynamics.com/XRMServices/2011/Discovery.svc?wsdl"
81+
packageName="com.cloudliner.integration.msdc11.stubs.discovery" output="${temp.dir}" syncOnly="true"/>
82+
</target>
83+
<!-- MSDC Organization Stub generation -->
84+
<target name="gen-organization-stub">
85+
<taskdef name="axis2-wsdl2java" classname="org.apache.axis2.tool.ant.AntCodegenTask" classpathref="build.classpath" />
86+
<axis2-wsdl2java wsdlfilename="https://yourCRMOrg.crm.dynamics.com/XRMServices/2011/Organization.svc?wsdl"
87+
packageName="com.cloudliner.integration.msdc11.stubs.organization" output="${temp.dir}" syncOnly="true"/>
88+
</target>
89+
90+
<!-- All Stubs generation -->
91+
<target name="gen-stubs" depends="clean-temp, clean-stubs, gen-discovery-stub, gen-organization-stub">
92+
<description>Generate all Web Services Stubs</description>
93+
<copy todir="${src.dir}">
94+
<fileset dir="${temp.dir}/src"/>
95+
</copy>
96+
<delete dir="${temp.dir}" />
97+
</target>
98+
99+
<!-- ### Main Target ### -->
100+
<target name="main" depends="compile, jar">
101+
<description>Main Task: Project Compilation, Build and Documentation</description>
102+
</target>
103+
104+
</project>

0 commit comments

Comments
 (0)