Skip to content

Instantly share code, notes, and snippets.

@tvlooy
Created July 14, 2015 19:42
Show Gist options
  • Save tvlooy/a71453464d952ddad024 to your computer and use it in GitHub Desktop.
Save tvlooy/a71453464d952ddad024 to your computer and use it in GitHub Desktop.
How to build jworklog

How to build tojans jworklog on Linux

Clone the project:

$ git clone https://github.com/ToJans/jworklog.git
Cloning into 'jworklog'...
remote: Counting objects: 39, done.
remote: Compressing objects: 100% (30/30), done.
remote: Total 39 (delta 8), reused 36 (delta 5), pack-reused 0
Unpacking objects: 100% (39/39), done.
Checking connectivity... done.

Install package dependencies with nuget (I aliased mono nuget.exe to mono):

$ cd jworklog
$ mkdir packages
$ cd packages
$ nuget install ../jworklog/packages.config
Installing 'Jira.SDK 1.1.4.1'.
Successfully installed 'Jira.SDK 1.1.4.1'.
Installing 'Newtonsoft.Json 6.0.8'.
Successfully installed 'Newtonsoft.Json 6.0.8'.
Installing 'RestSharp 105.0.1'.
Successfully installed 'RestSharp 105.0.1'.

Compile the project:

$ cd ..
$ xbuild
XBuild Engine Version 12.0
Mono, Version 4.0.1.0
Copyright (C) 2005-2013 Various Mono authors

Build started 7/14/2015 9:31:53 PM.
__________________________________________________
Project "/home/tvl/Documents/projects/jworklog/jworklog.sln" (default target(s)):
	Target ValidateSolutionConfiguration:
		Building solution configuration "Debug|Any CPU".
	Target Build:
		Project "/home/tvl/Documents/projects/jworklog/jworklog/jworklog.csproj" (default target(s)):
			Target PrepareForBuild:
				Configuration: Debug Platform: AnyCPU
				Created directory "bin/Debug/"
				Created directory "obj/Debug/"
			Target CopyFilesMarkedCopyLocal:
				Copying file from '/home/tvl/Documents/projects/jworklog/packages/Jira.SDK.1.1.4.1/lib/net45/Jira.SDK.dll' to '/home/tvl/Documents/projects/jworklog/jworklog/bin/Debug/Jira.SDK.dll'
				Copying file from '/home/tvl/Documents/projects/jworklog/packages/Newtonsoft.Json.6.0.8/lib/net45/Newtonsoft.Json.dll' to '/home/tvl/Documents/projects/jworklog/jworklog/bin/Debug/Newtonsoft.Json.dll'
				Copying file from '/home/tvl/Documents/projects/jworklog/packages/RestSharp.105.0.1/lib/net4/RestSharp.dll' to '/home/tvl/Documents/projects/jworklog/jworklog/bin/Debug/RestSharp.dll'
			Target GenerateSatelliteAssemblies:
			No input files were specified for target GenerateSatelliteAssemblies, skipping.
			Target CoreCompile:
				Tool /usr/lib/mono/4.5/mcs.exe execution started with arguments: /noconfig /debug:full /debug+ /optimize- /out:obj/Debug/jworklog.exe Program.cs Properties/AssemblyInfo.cs obj/Debug/.NETFramework,Version=v4.5.AssemblyAttribute.cs /target:exe /define:"DEBUG;TRACE" /nostdlib /platform:AnyCPU /reference:../packages/Jira.SDK.1.1.4.1/lib/net45/Jira.SDK.dll /reference:../packages/Newtonsoft.Json.6.0.8/lib/net45/Newtonsoft.Json.dll /reference:../packages/RestSharp.105.0.1/lib/net4/RestSharp.dll /reference:/usr/lib/mono/4.5/System.dll /reference:/usr/lib/mono/4.5/System.Xml.Linq.dll /reference:/usr/lib/mono/4.5/System.Data.DataSetExtensions.dll /reference:/usr/lib/mono/4.5/Microsoft.CSharp.dll /reference:/usr/lib/mono/4.5/System.Data.dll /reference:/usr/lib/mono/4.5/System.Xml.dll /reference:/usr/lib/mono/4.5/System.Core.dll /reference:/usr/lib/mono/4.5/mscorlib.dll /warn:4
			Target _CopyAppConfigFile:
				Copying file from '/home/tvl/Documents/projects/jworklog/jworklog/App.config' to '/home/tvl/Documents/projects/jworklog/jworklog/bin/Debug/jworklog.exe.config'
			Target DeployOutputFiles:
				Copying file from '/home/tvl/Documents/projects/jworklog/jworklog/obj/Debug/jworklog.exe.mdb' to '/home/tvl/Documents/projects/jworklog/jworklog/bin/Debug/jworklog.exe.mdb'
				Copying file from '/home/tvl/Documents/projects/jworklog/jworklog/obj/Debug/jworklog.exe' to '/home/tvl/Documents/projects/jworklog/jworklog/bin/Debug/jworklog.exe'
		Done building project "/home/tvl/Documents/projects/jworklog/jworklog/jworklog.csproj".
Done building project "/home/tvl/Documents/projects/jworklog/jworklog.sln".

Build succeeded.
	 0 Warning(s)
	 0 Error(s)

Time Elapsed 00:00:00.6290820

Running the project:

$ ./jworklog/bin/Debug/jworklog.exe 
No config found; created one.
Please check your config file at :
	/home/tvl/.config/jirasettings.json

I created a config file and can confirm that the tool works.

@ToJans
Copy link

ToJans commented Jul 14, 2015

Mind blown

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment