Skip to content

Conversation

@jonpryor
Copy link
Contributor

make jenkins after a fresh checkout was failing:

$ make jenkins
cp Configuration.Java.Interop.Override.props external/Java.Interop/Configuration.Override.props
./build-tools/scripts/generate-os-info Configuration.OperatingSystem.props
cp `xbuild /p:Configuration=Debug  /nologo /v:minimal /t:GetMonoSourceFullPath build-tools/scripts/Paths.targets`/mcs/class/msfinal.pub .
cp: /Volumes/Seagate4TB/work/xamarin-android/external/mono/mcs/class/msfinal.pub: No such file or directory
make: *** [prepare-props] Error 1

The reason it failed is because make prepare-props ran before
git submodule update ran, meaning the file
external/mono/mcs/class/msfinal.pub didn't exist yet.

Move the git submodule initialization logic into a new
make prepare-external target, which is run before
make prepare-props. This ensures that required files exist before
they are used.

Additionally, fix the make prepare-external logic so that if the
$(JavaInteropSourceDirectory) MSBuild property is overridden, we run
nuget restore from the appropriate directory.

`make jenkins` after a fresh checkout was failing:

	$ make jenkins
	cp Configuration.Java.Interop.Override.props external/Java.Interop/Configuration.Override.props
	./build-tools/scripts/generate-os-info Configuration.OperatingSystem.props
	cp `xbuild /p:Configuration=Debug  /nologo /v:minimal /t:GetMonoSourceFullPath build-tools/scripts/Paths.targets`/mcs/class/msfinal.pub .
	cp: /Volumes/Seagate4TB/work/xamarin-android/external/mono/mcs/class/msfinal.pub: No such file or directory
	make: *** [prepare-props] Error 1

The reason it failed is because `make prepare-props` ran *before*
`git submodule update` ran, meaning the file
`external/mono/mcs/class/msfinal.pub` didn't exist yet.

Move the git submodule initialization logic into a new
`make prepare-external` target, which is run before
`make prepare-props`. This ensures that required files exist before
they are used.

Additionally, fix the `make prepare-external` logic so that if the
`$(JavaInteropSourceDirectory)` MSBuild property is overridden, we run
`nuget restore` from the appropriate directory.
@grendello grendello merged commit 29addc7 into master Jul 26, 2016
@jonpryor jonpryor deleted the jonp-clean-jenkins branch August 19, 2016 14:35
radical pushed a commit that referenced this pull request May 8, 2018
)

Fixes: dotnet/java-interop#129

The System.Double/Single ["Round-trip Format Specifier"][0] varies by
culture, so cultures which use `,` as the decimal separator character
use `,` within e.g. `42.0.ToString("r")`.

For example, the Java declaration:

	class E {
		public static final double V = 42.5;
	}

on french systems would result in `class-parse` emitting:

	<field name="V" value="42,5" .../>

which, when run through `generator`, emits:

	public const double V = (double) 42,5;

...which promptly fails with a CS1001. Oops.

Fix our `double` and `float` serialization in
`XmlClassDeclarationBuilder` so that `CultureInfo.InvariantCulture` is
used, which ensures that `.` is the decimal separator character,
ensuring that `class-parse` and `generator` output is as expected.

[0]: https://msdn.microsoft.com/en-us/library/dwhawy9k(v=vs.110).aspx#RFormatString
jonpryor added a commit to jonpryor/xamarin-android that referenced this pull request Aug 27, 2021
Context: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1314263

Changes: dotnet/android-tools@efc9b67...9b658b2

  * dotnet/android-tools@9b658b2: Merge pull request dotnet#133 from xamarin/ndk-r23
  * dotnet/android-tools@ff73f92: [build] Use GitInfo to generate $(Version) (dotnet#131)
  * dotnet/android-tools@4c2e36c: [Xamarin.Android.Tools.AndroidSdk] Eclipse Adoptium support (dotnet#132)
  * dotnet/android-tools@eaec4e3: [Xamarin.Android.Tools.AndroidSdk] More Microsoft Dist JDK Support (dotnet#130)
  * dotnet/android-tools@f9c1b0d: [BaseTasks] improve Task settings in AsyncTaskExtensions (dotnet#129)
  * dotnet/android-tools@02f7ae7: [NDK] Properly detect 64-bit NDK
jonpryor added a commit that referenced this pull request Aug 27, 2021
Context: https://devdiv.visualstudio.com/DevDiv/_workitems/edit/1314263

Changes: dotnet/android-tools@efc9b67...9b658b2

  * dotnet/android-tools@9b658b2: Merge pull request #133 from xamarin/ndk-r23
  * dotnet/android-tools@ff73f92: [build] Use GitInfo to generate $(Version) (#131)
  * dotnet/android-tools@4c2e36c: [Xamarin.Android.Tools.AndroidSdk] Eclipse Adoptium support (#132)
  * dotnet/android-tools@eaec4e3: [Xamarin.Android.Tools.AndroidSdk] More Microsoft Dist JDK Support (#130)
  * dotnet/android-tools@f9c1b0d: [BaseTasks] improve Task settings in AsyncTaskExtensions (#129)
  * dotnet/android-tools@02f7ae7: [NDK] Properly detect 64-bit NDK
@github-actions github-actions bot locked and limited conversation to collaborators Feb 6, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants