I've been updating scripts for setting up a local debug/testing environment for work.
I worked late on it last night. If I don't take extra time in my off hours to get it done, I'll never finish it, even though it is something that will make the rest of my tasks easier to finish, as well as helping out co-workers.
This morning, after getting only 5 hours sleep because I woke up early, I just wanted to tweak a few things and test it out. I should be able to kick it off and let it run while I'm doing other things, then kick off a few more things, etc. It started out well. Except that Eclipse wasn't picking up the right default JRE, which for our environment isn't the same as the JDK version that we need to use for running Eclipse itself.
It was unclear how to configure Eclipse's prefs and configuration files so that it would use my dynamically inserted JDK path. That took what, 5 hours to get working? Because of fascinating details about how all that works, which I'm too tired to describe now but maybe later elsewhere.
Then I had to do more tweaking because some files need single backward slashes in the paths, and some files need double backward slashes... and good heavens it didn't like having a combination of forward and backward slashes either...
Then I had to tweak it more, because in changing all those slashes in the paths, I accidentally also changed slashes that weren't in the paths. So I had to add logic to swap those back. At this point, even though that may seem convoluted, it's the simplest way to do it.
REM ... undo the slash changes that weren't in the paths. Change the double slashes back to single slashes.
powershell -Command "(Get-Content '%EclipseDir%\org.eclipse.jdt.launching.prefs') -replace '<\\\\', '</' | Out-File -encoding ASCII '%EclipseDir%\org.eclipse.jdt.launching.prefs'
I already inserted a "Sheesh!" to the end of the comment, and was debating adding "Please Lord let it work right this time" or perhaps, "Please Lord, bless this code..."
because you know, even if I don't believe in a Lord, it would probably amuse the next person who looks at the file.
.
and also thunderstorm and yapping dog and vegan grilled cheese sandwiches - Follow Your Heart has a new Smoked Gouda cheese which combines/melts well together with the Tofutti American cheese slices.
and also being partly upset with myself for having wasted more than half my weekend on work work. and yet still wanting to continue on it.
I worked late on it last night. If I don't take extra time in my off hours to get it done, I'll never finish it, even though it is something that will make the rest of my tasks easier to finish, as well as helping out co-workers.
This morning, after getting only 5 hours sleep because I woke up early, I just wanted to tweak a few things and test it out. I should be able to kick it off and let it run while I'm doing other things, then kick off a few more things, etc. It started out well. Except that Eclipse wasn't picking up the right default JRE, which for our environment isn't the same as the JDK version that we need to use for running Eclipse itself.
It was unclear how to configure Eclipse's prefs and configuration files so that it would use my dynamically inserted JDK path. That took what, 5 hours to get working? Because of fascinating details about how all that works, which I'm too tired to describe now but maybe later elsewhere.
Then I had to do more tweaking because some files need single backward slashes in the paths, and some files need double backward slashes... and good heavens it didn't like having a combination of forward and backward slashes either...
Then I had to tweak it more, because in changing all those slashes in the paths, I accidentally also changed slashes that weren't in the paths. So I had to add logic to swap those back. At this point, even though that may seem convoluted, it's the simplest way to do it.
REM ... undo the slash changes that weren't in the paths. Change the double slashes back to single slashes.
powershell -Command "(Get-Content '%EclipseDir%\org.eclipse.jdt.launching.prefs') -replace '<\\\\', '</' | Out-File -encoding ASCII '%EclipseDir%\org.eclipse.jdt.launching.prefs'
I already inserted a "Sheesh!" to the end of the comment, and was debating adding "Please Lord let it work right this time" or perhaps, "Please Lord, bless this code..."
because you know, even if I don't believe in a Lord, it would probably amuse the next person who looks at the file.
.
and also thunderstorm and yapping dog and vegan grilled cheese sandwiches - Follow Your Heart has a new Smoked Gouda cheese which combines/melts well together with the Tofutti American cheese slices.
and also being partly upset with myself for having wasted more than half my weekend on work work. and yet still wanting to continue on it.