Skip to main content
4-Participant
June 30, 2025
Solved

Basic Ant and packaging question

  • June 30, 2025
  • 2 replies
  • 414 views

I am using Windchill PDMLink Release 12.1 and Datecode with CPS 12.1.2.7

I was curious how to compile just our custom Java code. I can't seem to find the right ant command.

Should the Java files be put in /codebase/src/... and then I issue an ant command?

If I compile our custom code to a Jar instead of several .class files, does this result in better performance? Where should the .jar file go?

Best answer by Jimwang

You can refer to the below articles:

 

https://www.ptc.com/en/support/article/CS361074

 

https://www.ptc.com/en/support/article/CS370513

 

2 replies

Jimwang16-PearlAnswer
16-Pearl
July 1, 2025
avillanueva
23-Emerald I
23-Emerald I
July 1, 2025

What OS are you on? For a long time, I let me IDE do the compilation against Windchill Jars outside of Windchill but since then I moved toward build scripts at the target host. Are you doing lots of development work or is this a one off? If anything simple, what @Jimwang is best course.  If you are using GIT and need to develop a automated build process, there are some other threads here that can help.